| @@ 381-388 (lines=8) @@ | ||
| 378 | while (false !== $lastPos = strrpos($subPath, '\\')) { |
|
| 379 | $subPath = substr($subPath, 0, $lastPos); |
|
| 380 | $search = $subPath.'\\'; |
|
| 381 | if (isset($this->prefixDirsPsr4[$search])) { |
|
| 382 | $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1); |
|
| 383 | foreach ($this->prefixDirsPsr4[$search] as $dir) { |
|
| 384 | if (file_exists($file = $dir . $pathEnd)) { |
|
| 385 | return $file; |
|
| 386 | } |
|
| 387 | } |
|
| 388 | } |
|
| 389 | } |
|
| 390 | } |
|
| 391 | ||
| @@ 409-419 (lines=11) @@ | ||
| 406 | $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext; |
|
| 407 | } |
|
| 408 | ||
| 409 | if (isset($this->prefixesPsr0[$first])) { |
|
| 410 | foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) { |
|
| 411 | if (0 === strpos($class, $prefix)) { |
|
| 412 | foreach ($dirs as $dir) { |
|
| 413 | if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { |
|
| 414 | return $file; |
|
| 415 | } |
|
| 416 | } |
|
| 417 | } |
|
| 418 | } |
|
| 419 | } |
|
| 420 | ||
| 421 | // PSR-0 fallback dirs |
|
| 422 | foreach ($this->fallbackDirsPsr0 as $dir) { |
|