You are here

public function UniversalClassLoader::registerNamespace in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/class-loader/UniversalClassLoader.php \Symfony\Component\ClassLoader\UniversalClassLoader::registerNamespace()

Registers a namespace.

Parameters

string $namespace The namespace:

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

File

vendor/symfony/class-loader/UniversalClassLoader.php, line 192

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;
}