Epic #83968: PSR-11 Initiative
Make stateless Bootstrap methods static
Bootstrap methods that do not use $this but mainly act
as utility may be used statically.
The following methods are affected:
[TASK] Make stateless Bootstrap methods static
Methods that do not use $this but mainly act as utility
may be used statically.
The previous non-static chainable behaviour is preserved
by returning static::$instance. (Invoking a static method
non statically does not trigger E_NOTICE or alike.)
The motivation for this change is to deprecate the
Bootstrap instanciated usage at some (later) point
in order to reduce global state.
The following methods are affected: * initializeLanguageObject * initializeBackendAuthentication * initializeBackendUser * initializeBackendRouter * loadExtTables * loadBaseTca * loadTypo3LoadedExtAndExtLocalconf * unsetReservedGlobalVariables * startOutputBuffering * disableCoreCache
Tested-by: TYPO3com <firstname.lastname@example.org>
Reviewed-by: Christian Kuhn <email@example.com>
Tested-by: Christian Kuhn <firstname.lastname@example.org>
Reviewed-by: Frank Naegler <email@example.com>
Tested-by: Frank Naegler <firstname.lastname@example.org>