public static function ExceptionHandler::register

Register the exception handler.

Return value

ExceptionHandler The registered exception handler

1 call to ExceptionHandler::register()
Kernel::init in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Kernel.php

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Debug/ExceptionHandler.php, line 48

Class

ExceptionHandler
ExceptionHandler converts an exception to a Response object.

Namespace

Symfony\Component\HttpKernel\Debug

Code

public static function register($debug = true) {
  $handler = new static($debug);
  set_exception_handler(array(
    $handler,
    'handle',
  ));
  return $handler;
}