diff --git a/typo3/sysext/core/Classes/Core/Bootstrap.php b/typo3/sysext/core/Classes/Core/Bootstrap.php index 2244b26f2188cfbc9e864667c013a57b6e6e5c48..6d1f401c65955df00b17a63bcc1473418f647977 100644 --- a/typo3/sysext/core/Classes/Core/Bootstrap.php +++ b/typo3/sysext/core/Classes/Core/Bootstrap.php @@ -404,9 +404,6 @@ class Bootstrap ->setDefaultTimezone() ->initializeL10nLocales() ->setMemoryLimit(); - if ($allowCaching) { - $this->ensureClassLoadingInformationExists(); - } return $this; } @@ -433,23 +430,6 @@ class Bootstrap return $this; } - /** - * Writes class loading information if not yet present - * - * @return Bootstrap - * @internal This is not a public API method, do not use in own extensions - * @deprecated since TYPO3 v8, will be removed in TYPO3 v9. Use the Install Tool to dump autoload information. - */ - public function ensureClassLoadingInformationExists() - { - if (!self::$usesComposerClassLoading && !ClassLoadingInformation::isClassLoadingInformationAvailable()) { - GeneralUtility::logDeprecatedFunction(); - ClassLoadingInformation::dumpClassLoadingInformation(); - ClassLoadingInformation::registerClassLoadingInformation(); - } - return $this; - } - /** * Activates a package during runtime. This is used in AdditionalConfiguration.php * to enable extensions under conditions. diff --git a/typo3/sysext/core/Classes/Core/ClassLoadingInformation.php b/typo3/sysext/core/Classes/Core/ClassLoadingInformation.php index b1e97d92937b69ed8464a765c0f78eba3e026af1..dbdba9768aa1f27a99eeaeece539fe4bff68315f 100644 --- a/typo3/sysext/core/Classes/Core/ClassLoadingInformation.php +++ b/typo3/sysext/core/Classes/Core/ClassLoadingInformation.php @@ -63,7 +63,7 @@ class ClassLoadingInformation */ public static function isClassLoadingInformationAvailable() { - return !self::isTestingContext() && file_exists(self::getClassLoadingInformationDirectory() . self::AUTOLOAD_CLASSMAP_FILENAME); + return file_exists(self::getClassLoadingInformationDirectory() . self::AUTOLOAD_CLASSMAP_FILENAME); } /** diff --git a/typo3/sysext/core/Documentation/Changelog/master/Breaking-80700-DeprecatedFunctionalityRemoved.rst b/typo3/sysext/core/Documentation/Changelog/master/Breaking-80700-DeprecatedFunctionalityRemoved.rst index ebe5ca5ab4e5fceb48dd477f64fd2023b8860c4c..d476af0d1344f5258435ebd803d7d8d6fe852943 100644 --- a/typo3/sysext/core/Documentation/Changelog/master/Breaking-80700-DeprecatedFunctionalityRemoved.rst +++ b/typo3/sysext/core/Documentation/Changelog/master/Breaking-80700-DeprecatedFunctionalityRemoved.rst @@ -152,6 +152,7 @@ The following PHP class methods that have been previously deprecated for v8 have * TYPO3\CMS\Core\Charset\CharsetConverter->utf8_strrpos() * TYPO3\CMS\Core\Charset\CharsetConverter->utf8_strtrunc() * TYPO3\CMS\Core\Charset\CharsetConverter->utf8_substr() +* TYPO3\CMS\Core\Core\Bootstrap->ensureClassLoadingInformationExists() * TYPO3\CMS\Core\Core\Bootstrap->loadExtensionTables() * TYPO3\CMS\Core\Database\RelationHandler->readyForInterface() * TYPO3\CMS\Core\Database\QueryView->tableWrap() diff --git a/typo3/sysext/install/Classes/Controller/AbstractController.php b/typo3/sysext/install/Classes/Controller/AbstractController.php index 0567b5880f71b511a3b2ca7268d1e2eaf3456dcd..aa0b731d00f5896a480dd522d4675e3ae2bcf458 100644 --- a/typo3/sysext/install/Classes/Controller/AbstractController.php +++ b/typo3/sysext/install/Classes/Controller/AbstractController.php @@ -57,7 +57,6 @@ class AbstractController protected function loadExtLocalconfDatabaseAndExtTables() { \TYPO3\CMS\Core\Core\Bootstrap::getInstance() - ->ensureClassLoadingInformationExists() ->loadTypo3LoadedExtAndExtLocalconf(false) ->unsetReservedGlobalVariables() ->loadBaseTca(false) diff --git a/typo3/sysext/install/Classes/Controller/InstallerController.php b/typo3/sysext/install/Classes/Controller/InstallerController.php index 88be7a75f109f6fe13b26fbbfc7da757c95ccad7..c6457c54b2bebad6be14ff9698ece92a29dd3f7d 100644 --- a/typo3/sysext/install/Classes/Controller/InstallerController.php +++ b/typo3/sysext/install/Classes/Controller/InstallerController.php @@ -1117,7 +1117,6 @@ For each website you need a TypoScript template on the main page of your website protected function loadExtLocalconfDatabaseAndExtTables() { \TYPO3\CMS\Core\Core\Bootstrap::getInstance() - ->ensureClassLoadingInformationExists() ->loadTypo3LoadedExtAndExtLocalconf(false) ->unsetReservedGlobalVariables() ->loadBaseTca(false) diff --git a/typo3/sysext/install/Configuration/ExtensionScanner/Php/MethodCallMatcher.php b/typo3/sysext/install/Configuration/ExtensionScanner/Php/MethodCallMatcher.php index 8e2170f9b2ad5b6baa5e6f39fdd62aab9677f1ea..5d8a5c4c63fbe1f5b972b6dd4177ffdb309a4b18 100644 --- a/typo3/sysext/install/Configuration/ExtensionScanner/Php/MethodCallMatcher.php +++ b/typo3/sysext/install/Configuration/ExtensionScanner/Php/MethodCallMatcher.php @@ -1254,4 +1254,11 @@ return [ 'Breaking-82572-RDCTFunctionalityRemoved.rst', ], ], + 'TYPO3\CMS\Core\Core\Bootstrap->ensureClassLoadingInformationExists' => [ + 'numberOfMandatoryArguments' => 0, + 'maximumNumberOfArguments' => 0, + 'restFiles' => [ + 'Breaking-80700-DeprecatedFunctionalityRemoved.rst', + ], + ], ];