Mercurial > hg > isophonics-drupal-site
comparison vendor/composer/ClassLoader.php @ 16:c2387f117808
Routine composer update
author | Chris Cannam |
---|---|
date | Tue, 10 Jul 2018 15:07:59 +0100 |
parents | 4c8ae668cc8c |
children |
comparison
equal
deleted
inserted
replaced
15:e200cb7efeb3 | 16:c2387f117808 |
---|---|
377 $subPath = $class; | 377 $subPath = $class; |
378 while (false !== $lastPos = strrpos($subPath, '\\')) { | 378 while (false !== $lastPos = strrpos($subPath, '\\')) { |
379 $subPath = substr($subPath, 0, $lastPos); | 379 $subPath = substr($subPath, 0, $lastPos); |
380 $search = $subPath.'\\'; | 380 $search = $subPath.'\\'; |
381 if (isset($this->prefixDirsPsr4[$search])) { | 381 if (isset($this->prefixDirsPsr4[$search])) { |
382 $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1); | |
382 foreach ($this->prefixDirsPsr4[$search] as $dir) { | 383 foreach ($this->prefixDirsPsr4[$search] as $dir) { |
383 $length = $this->prefixLengthsPsr4[$first][$search]; | 384 if (file_exists($file = $dir . $pathEnd)) { |
384 if (file_exists($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) { | |
385 return $file; | 385 return $file; |
386 } | 386 } |
387 } | 387 } |
388 } | 388 } |
389 } | 389 } |