Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[DX] A simpler way to define custom error pages #24049

Copy link
Copy link
Closed
@javiereguiluz

Description

@javiereguiluz
Issue body actions
Q A
Bug report? no
Feature request? yes
BC Break report? no
RFC? no
Symfony version 3.4

How to Customize Error Pages in Symfony apps has bugged me since day one. In the past we could understand why it worked that way. But now that Twig is a first class citizen, in-app bundles are gone and bundle inheritance is in question we could reconsider this.

The Proposal

Make Symfony/Twig/TwigBundle look for in the templates/error/ directory for custom error pages, and keep using the same logic to pick the template (error500.json.twig, error.xml.twig, etc.)

This change could be made for Symfony 4.0, which introduces the new templates/ directory at project root, but we may need to deprecate or change something in Symfony 3.4 in preparation for that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DXDX = Developer eXperience (anything that improves the experience of using Symfony)DX = Developer eXperience (anything that improves the experience of using Symfony)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.