You are here

public function ExceptionLoggingSubscriber::__construct in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/EventSubscriber/ExceptionLoggingSubscriber.php \Drupal\Core\EventSubscriber\ExceptionLoggingSubscriber::__construct()

Constructs a new ExceptionLoggingSubscriber.

Parameters

\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger: The logger channel factory.

File

core/lib/Drupal/Core/EventSubscriber/ExceptionLoggingSubscriber.php, line 35
Contains \Drupal\Core\EventSubscriber\ExceptionLoggingSubscriber.

Class

ExceptionLoggingSubscriber
Log exceptions without further handling.

Namespace

Drupal\Core\EventSubscriber

Code

public function __construct(LoggerChannelFactoryInterface $logger) {
  $this->logger = $logger;
}