Example #1
0
 /**
  * Enables packages during runtime, but no class aliases will be available
  *
  * @param string $packageKey
  * @api
  */
 public function activatePackageDuringRuntime($packageKey)
 {
     $package = $this->getPackage($packageKey);
     $this->runtimeActivatedPackages[$package->getPackageKey()] = $package;
     $this->classLoader->addActivePackage($package);
     if (!isset($GLOBALS['TYPO3_LOADED_EXT'][$package->getPackageKey()])) {
         $loadedExtArrayElement = new \TYPO3\CMS\Core\Compatibility\LoadedExtensionArrayElement($package);
         $GLOBALS['TYPO3_LOADED_EXT'][$package->getPackageKey()] = $loadedExtArrayElement->toArray();
     }
 }