1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-10 17:12:51 +00:00

Add repositories path glob

This commit is contained in:
Kazuhiro Inari 2018-07-07 00:47:27 +09:00
parent f24fcea35b
commit 354eec76ae

View file

@ -177,6 +177,6 @@ class PathRepository extends ArrayRepository implements ConfigurableRepositoryIn
// Ensure environment-specific path separators are normalized to URL separators
return array_map(function ($val) {
return rtrim(str_replace(DIRECTORY_SEPARATOR, '/', $val), '/');
}, glob($this->url, GLOB_MARK | GLOB_ONLYDIR));
}, glob($this->url, GLOB_MARK | GLOB_ONLYDIR | GLOB_BRACE));
}
}