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