1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-24 15:23:11 +02:00

Fix PSR-4 stacked namespace loading issue in WireClassLoader

This commit is contained in:
Ryan Cramer
2018-08-02 12:21:58 -04:00
parent 75889d3ac9
commit fa2c8e30b9

View File

@@ -217,7 +217,7 @@ class WireClassLoader {
if($namespace) {
$paths = self::$namespaces[$namespace];
$dir = count($_parts) ? implode("/", $_parts) . '/' : '';
$dir = count($_parts) ? implode('/', array_reverse($_parts)) . '/' : '';
foreach($this->extensions as $ext) {
foreach($paths as $path) {
$file = "$path$dir$name$ext";