You are here

function xautoload_ClassFinder_Helper_Map::registerDeepPaths in X Autoload 7.3

Register a bunch of those paths ..

File

lib/ClassFinder/Helper/Map.php, line 93

Class

xautoload_ClassFinder_Helper_Map
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).

Code

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