Skip to content

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

@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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy