public function ErrorsLoggerListener::__construct

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/EventListener/ErrorsLoggerListener.php, line 31

Class

ErrorsLoggerListener
Injects the logger into the ErrorHandler, so that it can log various errors.

Namespace

Symfony\Component\HttpKernel\EventListener

Code

public function __construct($channel, LoggerInterface $logger = null) {
  $this->channel = $channel;
  $this->logger = $logger;
}