Re-enable include path even when classmap authoritative is present, refs #4556
parent
e05207dbad
commit
bda2c0f9b7
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue