[TASK] Switch Locales to regular singleton instance 46/61046/5
authorBenni Mack <benni@typo3.org>
Mon, 17 Jun 2019 04:50:52 +0000 (06:50 +0200)
committerAndreas Fernandez <a.fernandez@scripting-base.de>
Mon, 17 Jun 2019 14:02:43 +0000 (16:02 +0200)
commit749e4222d422a8b20a55ca35dd6dd0f6ff8ca48c
treeb3d13335e2b92fa92c11b79a73c07bf07f21b21e
parentbc6969feb646fbf3cbf641359553a97aeb9e8c18
[TASK] Switch Locales to regular singleton instance

Locales resolves the user-defined TYPO3-languages and
its dependencies via TYPO3_CONF_VARS, which are only
finally available when all extensions' ext_localconf.php is included.

For this reason, Locales::initialize() can be deprecated
and moved into the regular constructor, but then the Bootstrap
should not do the initialization anymore, which happens
at the point now, when Locales first gets initialized (which
happens in Frontend within TSFE and PageRenderer and
in Backend within $LANG).

For this reason, it is removed from Bootstrap, where it was
first placed in TYPO3 4.6 when no proper bootstrap
set up was given.

Resolves: #88569
Releases: master
Change-Id: Ife2e248412c1b206abffcdd21df0d01e44834cea
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/61046
Tested-by: Benjamin Franzke <bfr@qbus.de>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: TYPO3com <noreply@typo3.com>
Reviewed-by: Benjamin Franzke <bfr@qbus.de>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
typo3/sysext/core/Classes/Core/Bootstrap.php
typo3/sysext/core/Classes/Localization/LanguageService.php
typo3/sysext/core/Classes/Localization/Locales.php
typo3/sysext/core/Documentation/Changelog/master/Deprecation-88569-LocalesinitializeInFavorOfRegularSingletonInstance.rst [new file with mode: 0644]
typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php
typo3/sysext/install/Configuration/ExtensionScanner/Php/MethodCallStaticMatcher.php