class PreviewErrorController

PreviewErrorController can be used to test error pages.

It will create a test exception and forward it to another controller.

Properties

protected $kernel
protected $controller

Methods

__construct(HttpKernelInterface $kernel, $controller)

No description

previewErrorPageAction(Request $request, $code)

No description

Details

at line 30
__construct(HttpKernelInterface $kernel, $controller)

Parameters

HttpKernelInterface $kernel
$controller

at line 36
previewErrorPageAction(Request $request, $code)

Parameters

Request $request
$code