Example #1
0
 /**
  * Initializes the Class Loader
  *
  * @return Bootstrap
  * @internal This is not a public API method, do not use in own extensions
  */
 public function initializeClassLoader()
 {
     $classLoader = new ClassLoader($this->applicationContext);
     $this->setEarlyInstance('TYPO3\\CMS\\Core\\Core\\ClassLoader', $classLoader);
     $classLoader->setRuntimeClassLoadingInformationFromAutoloadRegistry((array) (include __DIR__ . '/../../ext_autoload.php'));
     $classAliasMap = new ClassAliasMap();
     $classAliasMap->injectClassLoader($classLoader);
     $this->setEarlyInstance('TYPO3\\CMS\\Core\\Core\\ClassAliasMap', $classAliasMap);
     $classLoader->injectClassAliasMap($classAliasMap);
     spl_autoload_register(array($classLoader, 'loadClass'), TRUE, TRUE);
     return $this;
 }
 /**
  * Get an aliases for a class name
  *
  * @param string $className
  * @return mixed
  */
 public static function getAliasesForClassName($className)
 {
     return static::$staticAliasMap->getAliasesForClassName($className);
 }