function xautoload_ClassFinder_NamespaceOrPrefix::registerNamespaceDeepLocation in X Autoload 7.3
Same name and namespace in other branches
- 7.2 lib/ClassFinder/NamespaceOrPrefix.php \xautoload_ClassFinder_NamespaceOrPrefix::registerNamespaceDeepLocation()
Register a deep filesystem location for a given namespace.
Parameters
string $namespace: The namespace, e.g. "My\Namespace"
string $path: The deep path, e.g. "../lib/My/Namespace"
boolean $lazy_check: If TRUE, then we are not sure if the directory at $path actually exists. If during the process we find the directory to be nonexistent, we unregister the path.
File
- lib/
ClassFinder/ NamespaceOrPrefix.php, line 104
Class
Code
function registerNamespaceDeepLocation($namespace, $path, $lazy_check = TRUE) {
$namespace_path_fragment = $this
->namespacePathFragment($namespace);
$deep_path = strlen($path) ? $path . DIRECTORY_SEPARATOR : '';
$this->namespaceMap
->registerDeepPath($namespace_path_fragment, $deep_path, $lazy_check);
}