function GenericEventSubscriber::__construct
Constructor.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\rules\Core\RulesEventManager $event_manager: The Rules event manager.
\Drupal\rules\Engine\RulesComponentRepositoryInterface $component_repository: The component repository.
\Drupal\Core\Logger\LoggerChannelInterface $logger: The Rules debug logger channel.
File
-
src/
EventSubscriber/ GenericEventSubscriber.php, line 61
Class
- GenericEventSubscriber
- Subscribes to Symfony events and maps them to Rules events.
Namespace
Drupal\rules\EventSubscriberCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, RulesEventManager $event_manager, RulesComponentRepositoryInterface $component_repository, LoggerChannelInterface $logger) {
$this->entityTypeManager = $entity_type_manager;
$this->eventManager = $event_manager;
$this->componentRepository = $component_repository;
$this->rulesDebugLogger = $logger;
}