1
0
Fork 0

Add support for adding more than one fallback dir

pull/224/merge
Jordi Boggiano 2012-02-09 18:18:43 +01:00
parent 3355a36f86
commit ec352b1e84
1 changed files with 3 additions and 1 deletions

View File

@ -65,7 +65,9 @@ class ClassLoader
public function add($prefix, $paths)
{
if (!$prefix) {
$this->fallbackDirs = (array) $paths;
foreach ((array) $paths as $path) {
$this->fallbackDirs[] = $path;
}
return;
}
if (isset($this->prefixes[$prefix])) {