function GenericPrefixMap::registerDeepPaths in X Autoload 7.4
Same name and namespace in other branches
- 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\ClassFinderCode
function registerDeepPaths(array $map) {
foreach ($map as $key => $paths) {
if (isset($this->paths[$key])) {
$paths += $this->paths[$key];
}
$this->paths[$key] = $paths;
}
}