1
0
Fork 0

Autoload-Generator: support glob patterns in classmaps

pull/8923/head
Markus Staab 2020-05-23 21:22:07 +02:00
parent d72a07db06
commit 6a0e02db1b
1 changed files with 1 additions and 1 deletions

View File

@ -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(