public function BusinessRulesListener::__construct in Business Rules 8
Same name and namespace in other branches
- 2.x src/EventSubscriber/BusinessRulesListener.php \Drupal\business_rules\EventSubscriber\BusinessRulesListener::__construct()
BusinessRulesListener constructor.
Parameters
\Drupal\business_rules\Util\BusinessRulesProcessor $processor: The business rule processor service.
\Drupal\business_rules\Util\BusinessRulesUtil $util: The business rule util.
\Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher: The event dispatcher.
\Drupal\Core\Logger\LoggerChannelFactoryInterface $loggerChannelFactory: The logger channel.
\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: The logger channel.
File
- src/
EventSubscriber/ BusinessRulesListener.php, line 95
Class
- BusinessRulesListener
- Class BusinessRulesListener.
Namespace
Drupal\business_rules\EventSubscriberCode
public function __construct(BusinessRulesProcessor $processor, BusinessRulesUtil $util, EventDispatcherInterface $eventDispatcher, LoggerChannelFactoryInterface $loggerChannelFactory, ModuleHandlerInterface $moduleHandler) {
$this->util = $util;
$this->processor = $processor;
$this->eventDispatcher = $eventDispatcher;
$this->loggerChannelFactory = $loggerChannelFactory;
$this->moduleHandler = $moduleHandler;
}