You are here

function xautoload_ClassFinder_NamespaceOrPrefix::registerNamespaceDeep in X Autoload 7.3

Same name and namespace in other branches
  1. 7.2 lib/ClassFinder/NamespaceOrPrefix.php \xautoload_ClassFinder_NamespaceOrPrefix::registerNamespaceDeep()

Alias for registerNamespaceDeepLocation()

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 69

Class

xautoload_ClassFinder_NamespaceOrPrefix

Code

function registerNamespaceDeep($namespace, $path, $lazy_check = TRUE) {
  strlen($namespace);
  $namespace_path_fragment = $this
    ->namespacePathFragment($namespace);
  $deep_path = strlen($path) ? $path . DIRECTORY_SEPARATOR : '';
  $this->namespaceMap
    ->registerDeepPath($namespace_path_fragment, $deep_path, $lazy_check);
}