Merge pull request #8923 from staabm/glob-classmap

Autoload-Generator: support glob patterns in classmaps
main
Jordi Boggiano 4 years ago committed by GitHub
commit 5ef7765cbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save