function xautoload_ClassFinder_NamespaceOrPrefix::registerNamespacesDeep in X Autoload 7.3
Register a number of "deep" namespace directories at once.
Parameters
array $map:
bool|xautoload_MissingDirPlugin_Interface $lazy_check:
File
- lib/
ClassFinder/ NamespaceOrPrefix.php, line 82
Class
Code
function registerNamespacesDeep($map, $lazy_check = TRUE) {
$deep_map = array();
foreach ($map as $namespace => $path) {
$namespace_path_fragment = $this
->namespacePathFragment($namespace);
$deep_path = strlen($path) ? $path . DIRECTORY_SEPARATOR : '';
$deep_map[$namespace_path_fragment][$deep_path] = $lazy_check;
}
$this->namespaceMap
->registerDeepPaths($deep_map);
}