Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ErrorHandler.php

function ErrorHandler::__construct

File

vendor/symfony/error-handler/ErrorHandler.php, line 179

Class

ErrorHandler
A generic ErrorHandler for the PHP engine.

Namespace

Symfony\Component\ErrorHandler

Code

public function __construct(?BufferingLogger $bootstrappingLogger = null, bool $debug = false) {
    if (\PHP_VERSION_ID < 80400) {
        $this->levels[\E_STRICT] = 'Runtime Notice';
        $this->loggers[\E_STRICT] = [
            null,
            LogLevel::ERROR,
        ];
    }
    if ($bootstrappingLogger) {
        $this->bootstrappingLogger = $bootstrappingLogger;
        $this->setDefaultLogger($bootstrappingLogger);
    }
    $traceReflector = new \ReflectionProperty(\Exception::class, 'trace');
    $this->configureException = \Closure::bind(static function ($e, $trace, $file = null, $line = null) use ($traceReflector) {
        $traceReflector->setValue($e, $trace);
        $e->file = $file ?? $e->file;
        $e->line = $line ?? $e->line;
    }, null, new class  extends \Exception {

});
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal