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:
@@ -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";
|
||||
|
Reference in New Issue
Block a user