You are here

function GenericPrefixMap::registerDeepPaths in X Autoload 7.5

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

Register a bunch of those paths ..

Parameters

array[] $map:

Throws

\Exception

File

src/ClassFinder/GenericPrefixMap.php, line 101

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