You are here

public function UniversalClassLoader::registerPrefixes in Zircon Profile 8.0

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

Registers an array of classes using the PEAR naming convention.

Parameters

array $classes An array of classes (prefixes as keys and locations as values):

File

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

Class

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

Namespace

Symfony\Component\ClassLoader

Code

public function registerPrefixes(array $classes) {
  foreach ($classes as $prefix => $locations) {
    $this->prefixes[$prefix] = (array) $locations;
  }
}