You are here

public function RulesLog::__construct in Rules 8.3

Constructs a new instance.

Parameters

\Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher: An EventDispatcherInterface instance.

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