[BUGFIX] ClassLoader error after installing extension
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Core / Bootstrap.php
index 795cf62..985c375 100644 (file)
@@ -163,6 +163,21 @@ class Bootstrap {
                return $this;
        }
 
+       /**
+        * Load TYPO3_LOADED_EXT, recreate class loader registry and load ext_localconf
+        *
+        * @param boolean $allowCaching
+        * @return \TYPO3\CMS\Core\Core\Bootstrap
+        * @internal This is not a public API method, do not use in own extensions
+        */
+       public function reloadTypo3LoadedExtAndClassLoaderAndExtLocalconf() {
+               $bootstrap = $this->getInstance();
+               $bootstrap->populateTypo3LoadedExtGlobal(FALSE);
+               \TYPO3\CMS\Core\Core\ClassLoader::loadClassLoaderCache();
+               $bootstrap->loadAdditionalConfigurationFromExtensions(FALSE);
+               return $this;
+       }
+
        /**
         * Sets up additional configuration applied in all scopes
         *
@@ -937,4 +952,4 @@ class Bootstrap {
 }
 
 
-?>
+?>
\ No newline at end of file