class PreviewErrorController
PreviewErrorController can be used to test error pages.
It will create a test exception and forward it to another controller.
protected | $kernel | ||
protected | $controller |
__construct(HttpKernelInterface $kernel, $controller) | ||
previewErrorPageAction(Request $request, $code) |
HttpKernelInterface | $kernel | |
$controller |
Request | $request | |
$code |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Bundle/TwigBundle/Controller/PreviewErrorController.html