[TASK] Move constant declaration to class constants
Using Class constants instead of constants that are defined during runtime has the following benefits: - Naming can be made more consistent (and separated) - Speeding up requests where the constants are not needed - Benefit from Opcaching of class loading instead of dynamic runtime definition - Testing framework has less "bootstrap" to do This affects the following constants: - TYPO3_copyright_year - TYPO3_URL_GENERAL - TYPO3_URL_LICENSE - TYPO3_URL_EXCEPTION - TYPO3_URL_DONATE - TYPO3_URL_WIKI_OPCODECACHE The constants are now deprecated. In addition, the "Typo3Copyright" class is now called "TYPO3Information". Resolves: #89866 Releases: master Change-Id: I607c90cb281179bda9875504d258daefd3471868 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/62624 Tested-by:TYPO3com <noreply@typo3.com> Tested-by:
Anja Leichsenring <aleichsenring@ab-softlab.de> Tested-by:
Georg Ringer <georg.ringer@gmail.com> Reviewed-by:
Anja Leichsenring <aleichsenring@ab-softlab.de> Reviewed-by:
Georg Ringer <georg.ringer@gmail.com>
Showing
- typo3/sysext/about/Classes/Controller/AboutController.php 9 additions, 8 deletionstypo3/sysext/about/Classes/Controller/AboutController.php
- typo3/sysext/backend/Classes/Controller/HelpController.php 8 additions, 7 deletionstypo3/sysext/backend/Classes/Controller/HelpController.php
- typo3/sysext/backend/Classes/Controller/LoginController.php 6 additions, 6 deletionstypo3/sysext/backend/Classes/Controller/LoginController.php
- typo3/sysext/backend/Classes/Template/DocumentTemplate.php 2 additions, 1 deletiontypo3/sysext/backend/Classes/Template/DocumentTemplate.php
- typo3/sysext/backend/Classes/Utility/BackendUtility.php 3 additions, 3 deletionstypo3/sysext/backend/Classes/Utility/BackendUtility.php
- typo3/sysext/core/Classes/Controller/ErrorPageController.php 3 additions, 2 deletionstypo3/sysext/core/Classes/Controller/ErrorPageController.php
- typo3/sysext/core/Classes/Core/SystemEnvironmentBuilder.php 26 additions, 10 deletionstypo3/sysext/core/Classes/Core/SystemEnvironmentBuilder.php
- typo3/sysext/core/Classes/Error/DebugExceptionHandler.php 3 additions, 1 deletiontypo3/sysext/core/Classes/Error/DebugExceptionHandler.php
- typo3/sysext/core/Classes/Information/Typo3Information.php 33 additions, 12 deletionstypo3/sysext/core/Classes/Information/Typo3Information.php
- typo3/sysext/core/Documentation/Changelog/10.2/Deprecation-89756-BackendUtilityTYPO3_copyRightNotice.rst 2 additions, 2 deletions...Deprecation-89756-BackendUtilityTYPO3_copyRightNotice.rst
- typo3/sysext/core/Documentation/Changelog/master/Deprecation-89866-Global-TYPO3-information-related-constants.rst 53 additions, 0 deletions...tion-89866-Global-TYPO3-information-related-constants.rst
- typo3/sysext/core/Tests/Unit/Error/ProductionExceptionHandlerTest.php 2 additions, 0 deletions.../core/Tests/Unit/Error/ProductionExceptionHandlerTest.php
- typo3/sysext/frontend/Classes/Http/RequestHandler.php 2 additions, 5 deletionstypo3/sysext/frontend/Classes/Http/RequestHandler.php
- typo3/sysext/frontend/Tests/Unit/Controller/ErrorControllerTest.php 2 additions, 0 deletions...xt/frontend/Tests/Unit/Controller/ErrorControllerTest.php
- typo3/sysext/frontend/Tests/Unit/Http/RequestHandlerTest.php 2 additions, 0 deletionstypo3/sysext/frontend/Tests/Unit/Http/RequestHandlerTest.php
- typo3/sysext/frontend/Tests/Unit/Middleware/PageArgumentValidatorTest.php 4 additions, 2 deletions...ntend/Tests/Unit/Middleware/PageArgumentValidatorTest.php
- typo3/sysext/install/Classes/SystemEnvironment/Check.php 2 additions, 1 deletiontypo3/sysext/install/Classes/SystemEnvironment/Check.php
- typo3/sysext/install/Classes/SystemEnvironment/SetupCheck.php 2 additions, 1 deletion...3/sysext/install/Classes/SystemEnvironment/SetupCheck.php
- typo3/sysext/install/Configuration/ExtensionScanner/Php/ConstantMatcher.php 30 additions, 0 deletions...ll/Configuration/ExtensionScanner/Php/ConstantMatcher.php
- typo3/sysext/workspaces/Classes/Controller/PreviewController.php 2 additions, 1 deletion...ysext/workspaces/Classes/Controller/PreviewController.php
Please register or sign in to comment