function RulesLog::__construct

Same name in other branches
  1. 7.x-2.x includes/rules.core.inc \RulesLog::__construct()

Constructs a new instance.

Parameters

\Symfony\Contracts\EventDispatcher\EventDispatcherInterface $dispatcher: The event_dispatcher service.

\Drupal\Core\Logger\LogMessageParserInterface $parser: The parser to use when extracting message variables.

File

src/Logger/RulesLog.php, line 41

Class

RulesLog
Logger that dispatches a SystemLoggerEvent when a logger entry is made.

Namespace

Drupal\rules\Logger

Code

public function __construct(EventDispatcherInterface $dispatcher, LogMessageParserInterface $parser) {
    $this->dispatcher = $dispatcher;
    $this->parser = $parser;
}