diff --git a/core/lib/Drupal/Core/DrupalKernel.php b/core/lib/Drupal/Core/DrupalKernel.php index 301b97c..830909a 100644 --- a/core/lib/Drupal/Core/DrupalKernel.php +++ b/core/lib/Drupal/Core/DrupalKernel.php @@ -662,7 +662,7 @@ protected function getModuleNamespaces($moduleFileNames) { */ protected function registerNamespaces(array $namespaces = array()) { foreach ($namespaces as $prefix => $path) { - $this->classLoader->add($prefix, $path); + $this->classLoader->addPsr4($prefix . '\\', $path . '/' . str_replace('\\', '/', $prefix)); } } }