Closed
Description
The article about customizing error pages [1] still mentions ExceptionController
as base for a new error controller. But this class is depreacated in 4.4 (and removed in 5). But changing the class to
Symfony\\Component\\HttpKernel\\Controller\\ErrorController
is not sufficient. The instructions for passing the debug flag do not match as well.
But do we advised to extend ErrorController, or maybe to set a custom service as error_renderer
? But I do not get at all how selecting error_render
works.
related: #12273
[1] https://symfony.com/doc/4.4/controller/error_pages.html#overriding-the-default-errorcontroller