You are here

function xautoload_ClassFinder_Helper_Map::registerDeepPath in X Autoload 7.3

Same name and namespace in other branches
  1. 7.2 lib/ClassFinder/Helper/Map.php \xautoload_ClassFinder_Helper_Map::registerDeepPath()

If a class file would be in $psr0_root . '/' . $path_fragment . $path_suffix then instead, we look in $deep_path . $path_suffix

Parameters

string $logical_base_path: The would-be namespace path relative to PSR-0 root. That is, the namespace with '\\' replaced by DIRECTORY_SEPARATOR.

string $deep_path: The filesystem location of the (PSR-0) subfolder for the given namespace.

bool $lazy_check: If TRUE, then it is yet unknown whether the directory exists. If during the process we find that it does not exist, we unregister it.

1 call to xautoload_ClassFinder_Helper_Map::registerDeepPath()
xautoload_ClassFinder_Helper_Map::registerRootPath in lib/ClassFinder/Helper/Map.php
If a class file would be in $psr0_root . '/' . $path_fragment . $path_suffix then instead, we look in $root_path . '/' . $path_fragment . $path_suffix

File

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

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 registerDeepPath($logical_base_path, $deep_path, $lazy_check = TRUE) {
  $this->paths[$logical_base_path][$deep_path] = $lazy_check;
}