Revert "Merge remote-tracking branch 'till/bugfix-broken-classmap'"

This reverts commit d837b8a657, reversing
changes made to 520d915860.
main
Jordi Boggiano 12 years ago
parent 6fb5d26474
commit defe5766a4

@ -118,15 +118,8 @@ EOF;
$autoloads['classmap'] = new \RecursiveIteratorIterator(new \RecursiveArrayIterator($autoloads['classmap']));
foreach ($autoloads['classmap'] as $dir) {
foreach (ClassMapGenerator::createMap($dir) as $class => $path) {
$classmapFile .= ' '.var_export($class, true) . ' => ';
if (0 === strpos($path, dirname($vendorPath), 0)) {
// this path seems to be located within this application/package
$path = '/' . $filesystem->findShortestPath(getcwd(), $path, true);
$classmapFile .= '$baseDir . ';
}
$classmapFile .= var_export($path, true).",\n";
$path = '/'.$filesystem->findShortestPath(getcwd(), $path, true);
$classmapFile .= ' '.var_export($class, true).' => $baseDir . '.var_export($path, true).",\n";
}
}
$classmapFile .= ");\n";

Loading…
Cancel
Save