public function ClassLoader::set

Registers a set of classes, replacing any others previously set.

Parameters

string $prefix The classes prefix:

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

File

drupal/core/vendor/composer/ClassLoader.php, line 127

Class

ClassLoader
ClassLoader implements a PSR-0 class loader

Namespace

Composer\Autoload

Code

public function set($prefix, $paths) {
  if (!$prefix) {
    $this->fallbackDirs = (array) $paths;
    return;
  }
  $this->prefixes[substr($prefix, 0, 1)][$prefix] = (array) $paths;
}