function LocalDirectoryAdapter::addClassMap in X Autoload 7.5
Same name and namespace in other branches
- 7.4 lib/Adapter/LocalDirectoryAdapter.php \Drupal\xautoload\Adapter\LocalDirectoryAdapter::addClassMap()
Registers an array ("map") of classes to file paths.
Parameters
array $classMap: The map of classes to file paths.
bool $relative: If TRUE, the paths will be relative to $this->localDirectory.
Overrides CommonRegistrationInterface::addClassMap
File
- src/
Adapter/ LocalDirectoryAdapter.php, line 143
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 addClassMap(array $classMap, $relative = TRUE) {
$relative && $this
->prependToPaths($classMap);
$this->master
->addClassMap($classMap);
}