[Finder] Added GLOB_BRACE support in Finder::in() method

This commit is contained in:
Brikou Carré 2013-12-05 13:44:41 +01:00 committed by Jakub Zalas
parent 64c70957e5
commit da67f5dc34

View File

@ -661,7 +661,7 @@ class Finder implements \IteratorAggregate, \Countable
foreach ((array) $dirs as $dir) {
if (is_dir($dir)) {
$resolvedDirs[] = $dir;
} elseif ($glob = glob($dir, GLOB_ONLYDIR)) {
} elseif ($glob = glob($dir, GLOB_BRACE | GLOB_ONLYDIR)) {
$resolvedDirs = array_merge($resolvedDirs, $glob);
} else {
throw new \InvalidArgumentException(sprintf('The "%s" directory does not exist.', $dir));