Skip to content

overwriting error controller should be updated for 4.4 #12920

Closed
@SimonHeimberg

Description

@SimonHeimberg

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions