|
|
@ -180,7 +180,7 @@ class ClassLoader
|
|
|
|
|
|
|
|
|
|
|
|
$classPath .= str_replace('_', DIRECTORY_SEPARATOR, $className) . '.php';
|
|
|
|
$classPath .= str_replace('_', DIRECTORY_SEPARATOR, $className) . '.php';
|
|
|
|
|
|
|
|
|
|
|
|
foreach ($this->prefixes as $prefix => $dirs) {
|
|
|
|
foreach ($this->prefixes as $prefix => $dirs) {
|
|
|
|
if (0 === strpos($class, $prefix)) {
|
|
|
|
if (0 === strpos($class, $prefix)) {
|
|
|
|
foreach ($dirs as $dir) {
|
|
|
|
foreach ($dirs as $dir) {
|
|
|
|
if (file_exists($dir . DIRECTORY_SEPARATOR . $classPath)) {
|
|
|
|
if (file_exists($dir . DIRECTORY_SEPARATOR . $classPath)) {
|
|
|
|