function ExtendedClassFinderInterface::registerNamespaceRoot in X Autoload 7.4
Same name and namespace in other branches
- 7.5 src/ClassFinder/ExtendedClassFinderInterface.php \Drupal\xautoload\ClassFinder\ExtendedClassFinderInterface::registerNamespaceRoot()
Register a PSR-0 root folder for a given namespace.
Parameters
string $namespace: The namespace, e.g. "My\Namespace", to cover all classes within that, e.g. My\Namespace\SomeClass, or My\Namespace\Xyz\SomeClass. This does not cover the root-level class, e.g. My\Namespace
string $root_path: The deep path, e.g. "../lib", if classes reside in e.g. My\Namespace\SomeClass -> ../lib/My/Namespace/SomeClass.php
\Drupal\xautoload\DirectoryBehavior\DirectoryBehaviorInterface $behavior: 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.
1 method overrides ExtendedClassFinderInterface::registerNamespaceRoot()
- ClassFinder::registerNamespaceRoot in lib/
ClassFinder/ ClassFinder.php - Register a PSR-0 root folder for a given namespace.
File
- lib/
ClassFinder/ ExtendedClassFinderInterface.php, line 165
Class
- ExtendedClassFinderInterface
- Class finder interface with additional registration methods.
Namespace
Drupal\xautoload\ClassFinderCode
function registerNamespaceRoot($namespace, $root_path, $behavior = NULL);