ErrorController
in package
Renders error or exception pages from a given FlattenException.
Tags
Table of Contents
- $controller : mixed
- $errorRenderer : mixed
- $kernel : mixed
- __construct() : mixed
- __invoke() : Response
- preview() : Response
Properties
$controller
private
mixed
$controller
$errorRenderer
private
mixed
$errorRenderer
$kernel
private
mixed
$kernel
Methods
__construct()
public
__construct(HttpKernelInterface $kernel, mixed $controller, ErrorRendererInterface $errorRenderer) : mixed
Parameters
- $kernel : HttpKernelInterface
- $controller : mixed
- $errorRenderer : ErrorRendererInterface
Return values
mixed —__invoke()
public
__invoke(Throwable $exception) : Response
Parameters
- $exception : Throwable
Return values
Response —preview()
public
preview(Request $request, int $code) : Response
Parameters
- $request : Request
- $code : int