/** * Gets the Composer loader. * * @return Composer\Autoload\ClassLoader */ function &get_composer_loader() { return Application::getLoader(); }
/** * 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); } } }