[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 Releases: master Resolves: #83952 Change-Id: I59d3027c5d10326d7bab2ae02e6ff0eb836f23e4 Reviewed-on: https://review.typo3.org/55775 Tested-by:TYPO3com <no-reply@typo3.com> Reviewed-by:
Christian Kuhn <lolli@schwarzbu.ch> Tested-by:
Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Frank Naegler <frank.naegler@typo3.org> Tested-by:
Frank Naegler <frank.naegler@typo3.org>
Showing
- typo3/sysext/backend/Classes/Command/ReferenceIndexUpdateCommand.php 1 addition, 1 deletion...t/backend/Classes/Command/ReferenceIndexUpdateCommand.php
- typo3/sysext/backend/Classes/Middleware/BackendRouteInitialization.php 2 additions, 3 deletions...backend/Classes/Middleware/BackendRouteInitialization.php
- typo3/sysext/backend/Classes/Middleware/BackendUserAuthenticator.php 4 additions, 5 deletions...t/backend/Classes/Middleware/BackendUserAuthenticator.php
- typo3/sysext/backend/Tests/Functional/Controller/FormInlineAjaxControllerTest.php 1 addition, 1 deletion...ts/Functional/Controller/FormInlineAjaxControllerTest.php
- typo3/sysext/backend/Tests/Functional/Controller/Page/LocalizationControllerTest.php 1 addition, 1 deletion...Functional/Controller/Page/LocalizationControllerTest.php
- typo3/sysext/backend/Tests/Functional/Domain/Repository/Localization/LocalizationRepositoryTest.php 1 addition, 1 deletion...in/Repository/Localization/LocalizationRepositoryTest.php
- typo3/sysext/core/Classes/Console/CommandApplication.php 1 addition, 1 deletiontypo3/sysext/core/Classes/Console/CommandApplication.php
- typo3/sysext/core/Classes/Console/CommandRequestHandler.php 6 additions, 16 deletionstypo3/sysext/core/Classes/Console/CommandRequestHandler.php
- typo3/sysext/core/Classes/Core/Bootstrap.php 32 additions, 32 deletionstypo3/sysext/core/Classes/Core/Bootstrap.php
- typo3/sysext/core/Tests/Functional/DataHandling/AbstractDataHandlerActionTestCase.php 1 addition, 1 deletion...tional/DataHandling/AbstractDataHandlerActionTestCase.php
- typo3/sysext/extensionmanager/Classes/Utility/InstallUtility.php 2 additions, 3 deletions...ysext/extensionmanager/Classes/Utility/InstallUtility.php
- typo3/sysext/frontend/Classes/Middleware/BackendUserAuthenticator.php 3 additions, 4 deletions.../frontend/Classes/Middleware/BackendUserAuthenticator.php
- typo3/sysext/impexp/Classes/Command/ImportCommand.php 1 addition, 1 deletiontypo3/sysext/impexp/Classes/Command/ImportCommand.php
- typo3/sysext/impexp/Tests/Functional/AbstractImportExportTestCase.php 1 addition, 1 deletion.../impexp/Tests/Functional/AbstractImportExportTestCase.php
- typo3/sysext/install/Classes/Controller/AbstractController.php 4 additions, 5 deletions.../sysext/install/Classes/Controller/AbstractController.php
- typo3/sysext/install/Classes/Controller/InstallerController.php 4 additions, 5 deletions...sysext/install/Classes/Controller/InstallerController.php
- typo3/sysext/install/Classes/Controller/SettingsController.php 1 addition, 1 deletion.../sysext/install/Classes/Controller/SettingsController.php
- typo3/sysext/install/Classes/Service/ClearCacheService.php 6 additions, 6 deletionstypo3/sysext/install/Classes/Service/ClearCacheService.php
- typo3/sysext/lowlevel/Classes/Command/CleanFlexFormsCommand.php 1 addition, 1 deletion...sysext/lowlevel/Classes/Command/CleanFlexFormsCommand.php
- typo3/sysext/lowlevel/Classes/Command/DeletedRecordsCommand.php 1 addition, 1 deletion...sysext/lowlevel/Classes/Command/DeletedRecordsCommand.php
Please register or sign in to comment