function GenericPrefixMap::registerDeepPath in X Autoload 7.5
Same name and namespace in other branches
- 7.4 lib/ClassFinder/GenericPrefixMap.php \Drupal\xautoload\ClassFinder\GenericPrefixMap::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 '/'.
string $deep_path: The filesystem location of the (PSR-0) subfolder for the given namespace.
DirectoryBehaviorInterface $behavior: Behavior in this directory.
File
- src/
ClassFinder/ GenericPrefixMap.php, line 74
Class
- GenericPrefixMap
- 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).
Namespace
Drupal\xautoload\ClassFinderCode
function registerDeepPath($logical_base_path, $deep_path, $behavior) {
$this->paths[$logical_base_path][$deep_path] = $behavior;
}