function LocalDirectoryAdapter::addMultiplePsr0 in X Autoload 7.5
Same name and namespace in other branches
- 7.4 lib/Adapter/LocalDirectoryAdapter.php \Drupal\xautoload\Adapter\LocalDirectoryAdapter::addMultiplePsr0()
Adds multiple PSR-0 prefixes.
Parameters
array $prefixes: Each array key is a PSR-0 prefix, e.g. "Acme\\FooPackage\\". Each array value is either a PSR-0 base directory or an array of PSR-0 base directories.
bool $relative: If TRUE, the paths will be relative to $this->localDirectory.
Overrides ClassFinderAdapterInterface::addMultiplePsr0
File
- src/
Adapter/ LocalDirectoryAdapter.php, line 112
Class
- LocalDirectoryAdapter
- An instance of this class is passed around to implementations of hook_xautoload(). It acts as a wrapper around the ClassFinder, to register stuff.
Namespace
Drupal\xautoload\AdapterCode
function addMultiplePsr0(array $prefixes, $relative = TRUE) {
$relative && $this
->prependMultiple($prefixes);
$this->master
->addMultiplePsr0($prefixes);
}