AutoloadGenerator.php miscalculates the path
Add tenary check to make sure relative specified paths arent seen as absolute. Fixises #94pull/95/head
parent
20db55e3aa
commit
8180117584
|
@ -111,11 +111,12 @@ EOF;
|
||||||
foreach ($package->getAutoload() as $type => $mapping) {
|
foreach ($package->getAutoload() as $type => $mapping) {
|
||||||
foreach ($mapping as $namespace => $path) {
|
foreach ($mapping as $namespace => $path) {
|
||||||
$autoloads[$type][] = array(
|
$autoloads[$type][] = array(
|
||||||
'namespace' => $namespace,
|
'namespace' => $namespace,
|
||||||
'path' => $installPath.'/'.$path,
|
'path' => empty($installPath) ? $path : $installPath.'/'.$path,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($autoloads as $type => $maps) {
|
foreach ($autoloads as $type => $maps) {
|
||||||
|
|
Loading…
Reference in New Issue