public function UniversalClassLoader::registerNamespace

Registers a namespace.

@api

Parameters

string $namespace The namespace:

array|string $paths The location(s) of the namespace:

File

drupal/core/vendor/symfony/class-loader/Symfony/Component/ClassLoader/UniversalClassLoader.php, line 197

Class

UniversalClassLoader
UniversalClassLoader implements a "universal" autoloader for PHP 5.3.

Namespace

Symfony\Component\ClassLoader

Code

public function registerNamespace($namespace, $paths) {
  $this->namespaces[$namespace] = (array) $paths;
}