You are here

public function BusinessRulesListener::__construct in Business Rules 2.x

Same name and namespace in other branches
  1. 8 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\EventSubscriber

Code

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;
}