function DrupalExtensionNamespaceFinderPlugin::__construct in X Autoload 7.5
Same name and namespace in other branches
- 7.4 lib/ClassFinder/Plugin/DrupalExtensionNamespaceFinderPlugin.php \Drupal\xautoload\ClassFinder\Plugin\DrupalExtensionNamespaceFinderPlugin::__construct()
Parameters
string $type: E.g. 'theme' or 'module'.
GenericPrefixMap $namespace_map:
GenericPrefixMap $prefix_map:
DrupalSystemInterface $system:
File
- src/
ClassFinder/ Plugin/ DrupalExtensionNamespaceFinderPlugin.php, line 80
Class
- DrupalExtensionNamespaceFinderPlugin
- There are different dimensions of state for each module:
Namespace
Drupal\xautoload\ClassFinder\PluginCode
function __construct($type, $namespace_map, $prefix_map, $system) {
$this->type = $type;
$this->prefixMap = $prefix_map;
$this->namespaceMap = $namespace_map;
$this->defaultBehavior = new DefaultDirectoryBehavior();
$this->psr0Behavior = new Psr0DirectoryBehavior();
$this->system = $system;
}