1
0
Fork 0

Merge pull request #8923 from staabm/glob-classmap

Autoload-Generator: support glob patterns in classmaps
pull/8948/head
Jordi Boggiano 2020-06-03 13:12:44 +02:00 committed by GitHub
commit 5ef7765cbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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(