PreviewErrorController
in package
PreviewErrorController can be used to test error pages.
It will create a test exception and forward it to another controller.
Tags
Table of Contents
- $controller : mixed
- $kernel : mixed
- __construct() : mixed
- previewErrorPageAction() : mixed
Properties
$controller
protected
mixed
$controller
$kernel
protected
mixed
$kernel
Methods
__construct()
public
__construct(HttpKernelInterface $kernel, mixed $controller) : mixed
Parameters
- $kernel : HttpKernelInterface
- $controller : mixed
Return values
mixed —previewErrorPageAction()
public
previewErrorPageAction(Request $request, mixed $code) : mixed
Parameters
- $request : Request
- $code : mixed