예제 #1
2
파일: helpers.php 프로젝트: newup/core
 /**
  * Gets the Composer loader.
  *
  * @return Composer\Autoload\ClassLoader
  */
 function &get_composer_loader()
 {
     return Application::getLoader();
 }
예제 #2
1
 /**
  * Merges the dependencies class maps.
  *
  * @param $vendor
  */
 private function mergeComposerClassMap($vendor)
 {
     if ($composerClassMap = $this->findComposerDirectory($vendor, 'autoload_classmap.php')) {
         $this->log->debug('Located autoload_classmap.php file', ['path' => $composerClassMap]);
         $classMap = (require $composerClassMap);
         if ($classMap) {
             $this->app->getLoader()->addClassMap($classMap);
         }
     }
 }