You are here

public function DebugHandlersListener::__construct in Zircon Profile 8

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

Parameters

callable|null $exceptionHandler A handler that will be called on Exception:

LoggerInterface|null $logger A PSR-3 logger:

array|int $levels An array map of E_* to LogLevel::* or an integer bit field of E_* constants:

int|null $throwAt Thrown errors in a bit field of E_* constants, or null to keep the current value:

bool $scream Enables/disables screaming mode, where even silenced errors are logged:

string $fileLinkFormat The format for links to source files:

File

vendor/symfony/http-kernel/EventListener/DebugHandlersListener.php, line 48

Class

DebugHandlersListener
Configures errors and exceptions handlers.

Namespace

Symfony\Component\HttpKernel\EventListener

Code

public function __construct($exceptionHandler, LoggerInterface $logger = null, $levels = null, $throwAt = -1, $scream = true, $fileLinkFormat = null) {
  $this->exceptionHandler = $exceptionHandler;
  $this->logger = $logger;
  $this->levels = $levels;
  $this->throwAt = is_numeric($throwAt) ? (int) $throwAt : (null === $throwAt ? null : ($throwAt ? -1 : null));
  $this->scream = (bool) $scream;
  $this->fileLinkFormat = $fileLinkFormat ?: ini_get('xdebug.file_link_format') ?: get_cfg_var('xdebug.file_link_format');
}