public static function ExceptionHandler::register in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/debug/ExceptionHandler.php \Symfony\Component\Debug\ExceptionHandler::register()
Registers the exception handler.
Parameters
bool $debug Enable/disable debug mode, where the stack trace is displayed:
string|null $charset The charset used by exception messages:
string|null $fileLinkFormat The IDE link template:
Return value
ExceptionHandler The registered exception handler
1 call to ExceptionHandler::register()
- Debug::enable in vendor/
symfony/ debug/ Debug.php - Enables the debug tools.
File
- vendor/
symfony/ debug/ ExceptionHandler.php, line 61
Class
- ExceptionHandler
- ExceptionHandler converts an exception to a Response object.
Namespace
Symfony\Component\DebugCode
public static function register($debug = true, $charset = null, $fileLinkFormat = null) {
$handler = new static($debug, $charset, $fileLinkFormat);
$prev = set_exception_handler(array(
$handler,
'handle',
));
if (is_array($prev) && $prev[0] instanceof ErrorHandler) {
restore_exception_handler();
$prev[0]
->setExceptionHandler(array(
$handler,
'handle',
));
}
return $handler;
}