1
0
Fork 0

Merge pull request #95 from henrikbjorn/autoload-relative

AutoloadGenerator.php miscalculates the path
pull/99/head
Jordi Boggiano 2011-11-07 00:31:48 -08:00
commit 59206e1a11
1 changed files with 3 additions and 2 deletions

View File

@ -111,11 +111,12 @@ EOF;
foreach ($package->getAutoload() as $type => $mapping) {
foreach ($mapping as $namespace => $path) {
$autoloads[$type][] = array(
'namespace' => $namespace,
'path' => $installPath.'/'.$path,
'namespace' => $namespace,
'path' => empty($installPath) ? $path : $installPath.'/'.$path,
);
}
}
}
foreach ($autoloads as $type => $maps) {