Skip to content

[DX] Better error message when symfony/templating is needed #27468

Closed
@javiereguiluz

Description

@javiereguiluz

Description
As reported on Symfony Docs (symfony/symfony-docs#9867):

I created a new Symfony project and added Twig. I also added an external Bundle that use the syntax FooBarBundle::template.html.twig and I got this exception:

Unable to find template "FooBarBundle::template.html.twig" (looked into: /srv/templates, /srv/templates).

Possible Solution
If the not found template contains : and symfony/templating is not installed, display a different error message explaining the user that they must install symfony/templating.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DXDX = 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