Autoload-Generator: support glob patterns in classmaps
parent
d72a07db06
commit
6a0e02db1b
|
@ -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