function DrupalConsoleLogger::__construct

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Command/DrupalConsoleLogger.php \Drupal\Core\Command\DrupalConsoleLogger::__construct()

File

core/lib/Drupal/Core/Command/DrupalConsoleLogger.php, line 21

Class

DrupalConsoleLogger
Logs to the console. A logger is set during DrupalApplication->bootstrap().

Namespace

Drupal\Core\Command

Code

public function __construct(protected LogMessageParserInterface $parser) {
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.