You are here

public function ClassLoader::set in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/composer/ClassLoader.php \Composer\Autoload\ClassLoader::set()

Registers a set of PSR-0 directories for a given prefix, replacing any others previously set for this prefix.

Parameters

string $prefix The prefix:

array|string $paths The PSR-0 base directories:

File

vendor/composer/ClassLoader.php, line 200

Class

ClassLoader
ClassLoader implements a PSR-0 class loader

Namespace

Composer\Autoload

Code

public function set($prefix, $paths) {
  if (!$prefix) {
    $this->fallbackDirsPsr0 = (array) $paths;
  }
  else {
    $this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths;
  }
}