[!!!][TASK] Remove deprecated ensureClassLoadingInformationExists() 83/54283/6
authorChristian Kuhn <lolli@schwarzbu.ch>
Wed, 4 Oct 2017 10:31:15 +0000 (12:31 +0200)
committerBenni Mack <benni@typo3.org>
Wed, 4 Oct 2017 14:44:03 +0000 (16:44 +0200)
Change-Id: I0f83233c25e73cfe6194d005cde320542e65464f
Resolves: #82674
Related: #80700
Releases: master
Reviewed-on: https://review.typo3.org/54283
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Helmut Hummel <typo3@helhum.io>
Tested-by: Helmut Hummel <typo3@helhum.io>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/core/Classes/Core/Bootstrap.php
typo3/sysext/core/Classes/Core/ClassLoadingInformation.php
typo3/sysext/core/Documentation/Changelog/master/Breaking-80700-DeprecatedFunctionalityRemoved.rst
typo3/sysext/install/Classes/Controller/AbstractController.php
typo3/sysext/install/Classes/Controller/InstallerController.php
typo3/sysext/install/Configuration/ExtensionScanner/Php/MethodCallMatcher.php

index 2244b26..6d1f401 100644 (file)
@@ -404,9 +404,6 @@ class Bootstrap
             ->setDefaultTimezone()
             ->initializeL10nLocales()
             ->setMemoryLimit();
-        if ($allowCaching) {
-            $this->ensureClassLoadingInformationExists();
-        }
         return $this;
     }
 
@@ -434,23 +431,6 @@ class Bootstrap
     }
 
     /**
-     * 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.
      *
index b1e97d9..dbdba97 100644 (file)
@@ -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);
     }
 
     /**
index ebe5ca5..d476af0 100644 (file)
@@ -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()
index 0567b58..aa0b731 100644 (file)
@@ -57,7 +57,6 @@ class AbstractController
     protected function loadExtLocalconfDatabaseAndExtTables()
     {
         \TYPO3\CMS\Core\Core\Bootstrap::getInstance()
-            ->ensureClassLoadingInformationExists()
             ->loadTypo3LoadedExtAndExtLocalconf(false)
             ->unsetReservedGlobalVariables()
             ->loadBaseTca(false)
index 88be7a7..c6457c5 100644 (file)
@@ -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)
index 8e2170f..5d8a5c4 100644 (file)
@@ -1254,4 +1254,11 @@ return [
             'Breaking-82572-RDCTFunctionalityRemoved.rst',
         ],
     ],
+    'TYPO3\CMS\Core\Core\Bootstrap->ensureClassLoadingInformationExists' => [
+        'numberOfMandatoryArguments' => 0,
+        'maximumNumberOfArguments' => 0,
+        'restFiles' => [
+            'Breaking-80700-DeprecatedFunctionalityRemoved.rst',
+        ],
+    ],
 ];