function ConsoleSubscriber::__construct

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

File

core/lib/Drupal/Core/Command/EventSubscriber/ConsoleSubscriber.php, line 19

Class

ConsoleSubscriber
Set a logger so that log messages appear in console output.

Namespace

Drupal\Core\Command\EventSubscriber

Code

public function __construct(protected DrupalConsoleLogger $logger) {
}

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