Add support for adding more than one fallback dir
parent
3355a36f86
commit
ec352b1e84
|
@ -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])) {
|
||||
|
|
Loading…
Reference in New Issue