class ErrorController extends ErrorController (View source)

Methods

__construct(HttpKernelInterface $httpKernel, Config $config, DetailControllerInterface $detailController, TemplateController $templateController, ErrorRendererInterface $errorRenderer, ContainerInterface $container)

No description

Response
showAction(Environment $twig, Throwable $exception)

Show an exception. Mainly used for custom 404 pages, otherwise falls back to Symfony's error handling

Details

__construct(HttpKernelInterface $httpKernel, Config $config, DetailControllerInterface $detailController, TemplateController $templateController, ErrorRendererInterface $errorRenderer, ContainerInterface $container)

Parameters

HttpKernelInterface $httpKernel
Config $config
DetailControllerInterface $detailController
TemplateController $templateController
ErrorRendererInterface $errorRenderer
ContainerInterface $container

Response showAction(Environment $twig, Throwable $exception)

Show an exception. Mainly used for custom 404 pages, otherwise falls back to Symfony's error handling

Parameters

Environment $twig
Throwable $exception

Return Value

Response