[ Index ]

PHP Cross Reference of phpBB-3.1.12-deutsch

title

Body

[close]

/vendor/symfony/debug/Symfony/Component/Debug/ -> ExceptionHandler.php (summary)

(no description)

File Size: 322 lines (13 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

ExceptionHandler:: (10 methods):
  __construct()
  register()
  handle()
  sendPhpResponse()
  createResponse()
  getContent()
  getStylesheet()
  decorate()
  abbrClass()
  formatArgs()


Class: ExceptionHandler  - X-Ref

ExceptionHandler converts an exception to a Response object.

It is mostly useful in debug mode to replace the default PHP/XDebug
output with something prettier and more useful.

As this class is mainly used during Kernel boot, where nothing is yet
available, the Response content is always HTML.

__construct($debug = true, $charset = 'UTF-8')   X-Ref
No description

register($debug = true)   X-Ref
Registers the exception handler.

param: bool $debug
return: ExceptionHandler The registered exception handler

handle(\Exception $exception)   X-Ref
Sends a response for the given Exception.

If you have the Symfony HttpFoundation component installed,
this method will use it to create and send the response. If not,
it will fallback to plain PHP functions.

param: \Exception $exception An \Exception instance

sendPhpResponse($exception)   X-Ref
Sends the error associated with the given Exception as a plain PHP response.

This method uses plain PHP functions like header() and echo to output
the response.

param: \Exception|FlattenException $exception An \Exception instance

createResponse($exception)   X-Ref
Creates the error Response associated with the given Exception.

param: \Exception|FlattenException $exception An \Exception instance
return: Response A Response instance

getContent(FlattenException $exception)   X-Ref
Gets the HTML content associated with the given exception.

param: FlattenException $exception A FlattenException instance
return: string The content as a string

getStylesheet(FlattenException $exception)   X-Ref
Gets the stylesheet associated with the given exception.

param: FlattenException $exception A FlattenException instance
return: string The stylesheet as a string

decorate($content, $css)   X-Ref
No description

abbrClass($class)   X-Ref
No description

formatArgs(array $args)   X-Ref
Formats an array as a string.

param: array $args The argument array
return: string



Generated: Thu Jan 11 00:25:41 2018 Cross-referenced by PHPXref 0.7.1