Merge branch '1.4'
commit
17b7387c37
|
@ -433,9 +433,14 @@ EOF;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($autoloads['classmap'])) {
|
if (isset($autoloads['classmap'])) {
|
||||||
|
$blacklist = null;
|
||||||
|
if (!empty($autoloads['exclude-from-classmap'])) {
|
||||||
|
$blacklist = '{(' . implode('|', $autoloads['exclude-from-classmap']) . ')}';
|
||||||
|
}
|
||||||
|
|
||||||
foreach ($autoloads['classmap'] as $dir) {
|
foreach ($autoloads['classmap'] as $dir) {
|
||||||
try {
|
try {
|
||||||
$loader->addClassMap($this->generateClassMap($dir, null, null, false));
|
$loader->addClassMap($this->generateClassMap($dir, $blacklist, null, false));
|
||||||
} catch (\RuntimeException $e) {
|
} catch (\RuntimeException $e) {
|
||||||
$this->io->writeError('<warning>'.$e->getMessage().'</warning>');
|
$this->io->writeError('<warning>'.$e->getMessage().'</warning>');
|
||||||
}
|
}
|
||||||
|
|
|
@ -75,7 +75,7 @@ class ClassMapGenerator
|
||||||
|
|
||||||
$map = array();
|
$map = array();
|
||||||
$filesystem = new Filesystem();
|
$filesystem = new Filesystem();
|
||||||
$cwd = getcwd();
|
$cwd = realpath(getcwd());
|
||||||
|
|
||||||
foreach ($path as $file) {
|
foreach ($path as $file) {
|
||||||
$filePath = $file->getPathname();
|
$filePath = $file->getPathname();
|
||||||
|
|
Loading…
Reference in New Issue