public static function ExceptionHandler::register

Registers the exception handler.

Parameters

Boolean $debug:

Return value

ExceptionHandler The registered exception handler

1 call to ExceptionHandler::register()
Debug::enable in drupal/core/vendor/symfony/debug/Symfony/Component/Debug/Debug.php
Enables the debug tools.

File

drupal/core/vendor/symfony/debug/Symfony/Component/Debug/ExceptionHandler.php, line 50

Class

ExceptionHandler
ExceptionHandler converts an exception to a Response object.

Namespace

Symfony\Component\Debug

Code

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