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

[Bug][Templating][Twig] Impossible to override templates of bundles #29299

Copy link
Copy link
Closed
@peterrehm

Description

@peterrehm
Issue body actions

Symfony version(s) affected: 3.4/4.x

Description
I am in the progress of updating an app to Symfony 4 and the new flex directory structure.
Therefore I was trying to override the FOSUserBundle login template. This was not working
even with the file in the proper location according to the docs.

How to reproduce
I had templating enabled with twig as engine. The template was placed in /templates/bundles/FOSUserBundle/Security/login.html.twig and was not loaded.

While debugging I found out, that the functionality introduced in the TwigExtension to handle the proper loading as introduced in #24179 is not triggered.
It seems the TwigExtension is not loaded at all.

Possible Solution
Disabling the templating configuration of the framework bundle solved the issue for me.
Is this intended that this does not work with having the templating component enabled?

Metadata

Metadata

Assignees

No one assigned

    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.