1
0
Fork 0

Re-enable include path even when classmap authoritative is present, refs #4556

pull/4757/head
Jordi Boggiano 2016-01-09 19:12:26 +00:00
parent e05207dbad
commit bda2c0f9b7
1 changed files with 18 additions and 22 deletions

View File

@ -568,7 +568,6 @@ class ComposerAutoloaderInit$suffix
HEADER;
if (!$this->classMapAuthoritative) {
if ($useIncludePath) {
$file .= <<<'INCLUDE_PATH'
$includePaths = require __DIR__ . '/include_paths.php';
@ -579,23 +578,20 @@ HEADER;
INCLUDE_PATH;
}
$file .= <<<'PSR0'
if (!$this->classMapAuthoritative) {
$file .= <<<'PSR04'
$map = require __DIR__ . '/autoload_namespaces.php';
foreach ($map as $namespace => $path) {
$loader->set($namespace, $path);
}
PSR0;
$file .= <<<'PSR4'
$map = require __DIR__ . '/autoload_psr4.php';
foreach ($map as $namespace => $path) {
$loader->setPsr4($namespace, $path);
}
PSR4;
PSR04;
}
if ($useClassMap) {