function ExtendedClassFinderInterface::registerPrefixRoot in X Autoload 7.4
Same name and namespace in other branches
- 7.5 src/ClassFinder/ExtendedClassFinderInterface.php \Drupal\xautoload\ClassFinder\ExtendedClassFinderInterface::registerPrefixRoot()
Register a PEAR-style root path for a given class prefix.
Parameters
string $prefix: Prefix, e.g. "My_Prefix", for classes like "My_Prefix_SomeClass". This does ALSO cover the class named "My_Prefix" itself.
string $root_path: Root path, e.g. "../lib" or "../src", so that classes can be placed e.g. My_Prefix_SomeClass -> ../lib/My/Prefix/SomeClass.php My_Prefix -> ../lib/My/Prefix.php
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::registerPrefixRoot()
- ClassFinder::registerPrefixRoot in lib/
ClassFinder/ ClassFinder.php - Register a PEAR-style root path for a given class prefix.
File
- lib/
ClassFinder/ ExtendedClassFinderInterface.php, line 61
Class
- ExtendedClassFinderInterface
- Class finder interface with additional registration methods.
Namespace
Drupal\xautoload\ClassFinderCode
function registerPrefixRoot($prefix, $root_path, $behavior = NULL);