[FOLLOWUP] Reload classAliasMap after extension installation 21/39221/2
authorNicole Cordes <typo3@cordes.co>
Sat, 2 May 2015 21:31:32 +0000 (23:31 +0200)
committerHelmut Hummel <helmut.hummel@typo3.org>
Sat, 2 May 2015 21:39:46 +0000 (23:39 +0200)
Fix unit tests.

Releases: master, 6.2
Resolves: #66696
Related: #65141
Change-Id: Iab641bb9e64280bfd81d0c1ca43b78ee0a188b40
Reviewed-on: http://review.typo3.org/39221
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Helmut Hummel <helmut.hummel@typo3.org>
Tested-by: Helmut Hummel <helmut.hummel@typo3.org>
typo3/sysext/extensionmanager/Classes/Utility/InstallUtility.php

index 7142f3b..c42c408 100644 (file)
@@ -108,9 +108,6 @@ class InstallUtility implements \TYPO3\CMS\Core\SingletonInterface {
                } else {
                        $this->cacheManager->flushCachesInGroup('system');
                }
-               // Reload class aliases defined in Migrations/Code/ClassAliasMap.php
-               \TYPO3\CMS\Core\Core\Bootstrap::getInstance()->getEarlyInstance(\TYPO3\CMS\Core\Core\ClassLoader::class)
-                       ->setPackages($this->packageManager->getActivePackages());
                $this->reloadCaches();
 
                $this->importInitialFiles($extension['siteRelPath'], $extensionKey);
@@ -305,6 +302,9 @@ class InstallUtility implements \TYPO3\CMS\Core\SingletonInterface {
         * @return void
         */
        public function reloadCaches() {
+               // Reload class aliases defined in Migrations/Code/ClassAliasMap.php
+               \TYPO3\CMS\Core\Core\Bootstrap::getInstance()->getEarlyInstance(\TYPO3\CMS\Core\Core\ClassLoader::class)
+                       ->setPackages($this->packageManager->getActivePackages());
                \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::loadExtLocalconf(FALSE);
                \TYPO3\CMS\Core\Core\Bootstrap::getInstance()->loadExtensionTables(FALSE);
        }