Skip to content

[RFC][TwigBundle] depends on the FrameworkBundle and Templating component but breaks #20212

Closed
@sstok

Description

@sstok

Pull request #20072 removed the dependency of the Templating component but now breaks when you want to use the TwigBundle and FrameworkBundle.

Templating support cannot be enabled as the Templating component is not installed.

I could simple add the Templating component as a dependency to my own library, but it should be required by the TwigBundle. However, I noticed that the TwigBundle also depends on the FrameworkBundle which is not defined as a dependency.

Before I make any further move, would like to ask for some comments on this issue.

@fabpot indicated that For the record, this is also in the path of making possible to use Symfony with Twig without using the Templating component indirection (I think that this is in fact the last step). but I'm not sure what would be best for the FrameworkBundle, should the TwigBundle be decoupled from the FrameworkBundle so that you can use it for HttpKernel without requiring the FrameworkBundle or should the FrameworkBundle be added as an explicit dependency of the TwigBundle?

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