You are here

public function ErrorsLoggerListener::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/EventListener/ErrorsLoggerListener.php \Symfony\Component\HttpKernel\EventListener\ErrorsLoggerListener::__construct()

File

vendor/symfony/http-kernel/EventListener/ErrorsLoggerListener.php, line 34

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;
}