Merge pull request #8923 from staabm/glob-classmap
Autoload-Generator: support glob patterns in classmapspull/8948/head
commit
5ef7765cbd
|
@ -65,7 +65,7 @@ class ClassMapGenerator
|
|||
if (is_string($path)) {
|
||||
if (is_file($path)) {
|
||||
$path = array(new \SplFileInfo($path));
|
||||
} elseif (is_dir($path)) {
|
||||
} elseif (is_dir($path) || strpos($path, '*') !== false) {
|
||||
$path = Finder::create()->files()->followLinks()->name('/\.(php|inc|hh)$/')->in($path);
|
||||
} else {
|
||||
throw new \RuntimeException(
|
||||
|
|
Loading…
Reference in New Issue