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