You are here

public function MessagePlaceholderProcessor::__construct in Monolog 8

Same name and namespace in other branches
  1. 2.x src/Logger/Processor/MessagePlaceholderProcessor.php \Drupal\monolog\Logger\Processor\MessagePlaceholderProcessor::__construct()

Parameters

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

File

src/Logger/Processor/MessagePlaceholderProcessor.php, line 23

Class

MessagePlaceholderProcessor
Parse and replace message placeholders.

Namespace

Drupal\monolog\Logger\Processor

Code

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