You are here

function GenericPrefixMap::registerDeepPaths in X Autoload 7.4

Same name and namespace in other branches
  1. 7.5 src/ClassFinder/GenericPrefixMap.php \Drupal\xautoload\ClassFinder\GenericPrefixMap::registerDeepPaths()

Register a bunch of those paths ..

Parameters

array[] $map:

Throws

\Exception

File

lib/ClassFinder/GenericPrefixMap.php, line 100

Class

GenericPrefixMap
Helper class for the class finder. This is not part of ClassFinder, because we want to use the same logic for namespaces (PSR-0) and prefixes (PEAR).

Namespace

Drupal\xautoload\ClassFinder

Code

function registerDeepPaths(array $map) {
  foreach ($map as $key => $paths) {
    if (isset($this->paths[$key])) {
      $paths += $this->paths[$key];
    }
    $this->paths[$key] = $paths;
  }
}