public function ComponentDiscovery::__construct in Decoupled Blocks 8
ComponentDiscovery constructor.
Parameters
string $root: The root directory of the Drupal installation.
\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The event dispatcher.
\Drupal\Core\Extension\InfoParserInterface $info_parser: The info parser.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
Overrides ExtensionDiscovery::__construct
File
- src/
ComponentDiscovery.php, line 63
Class
- ComponentDiscovery
- Discovery service for front-end components provided by modules and themes.
Namespace
Drupal\pdbCode
public function __construct($root, EventDispatcherInterface $event_dispatcher, InfoParserInterface $info_parser, ModuleHandlerInterface $module_handler) {
parent::__construct($root);
$this->eventDispatcher = $event_dispatcher;
$this->infoParser = $info_parser;
$this->moduleHandler = $module_handler;
}