diff --git a/core/includes/bootstrap.inc b/core/includes/bootstrap.inc index 6abe08a..4e66460 100644 --- a/core/includes/bootstrap.inc +++ b/core/includes/bootstrap.inc @@ -2860,6 +2860,11 @@ function drupal_classloader() { */ function drupal_classloader_register($name, $path) { $loader = drupal_classloader(); + + // Convert the namespace component from lowercase_underscore into + // UpperCamelCase to follow common best practices for class naming in PHP. + $name = Symfony\Component\DependencyInjection\Container::camelize($name); + $loader->registerNamespace('Drupal\\' . $name, DRUPAL_ROOT . '/' . $path . '/lib'); }