8000 Twig service in AbstractController · Issue #45080 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
Twig service in AbstractController #45080
Closed
@meiyasan

Description

@meiyasan

Symfony version(s) affected

6.0.2

Description

Hello,

I have been using Symfony\Bundle\FrameworkBundle\Controller\AbstractController for a while in my bundle. Since I updated to version 6.0.2, controllers in my bundles are returning an error message :

You cannot use the "renderView" method if the Twig Bundle is not available. Try running "composer require symfony/twig-bundle".

I have upgraded recipes while updating to SF6 and double-checked my service declaration. Problem still here.
Might this issue be a consequence of the deprecation public state of the twig service as described here ?
#36739

Is there an alternative I might not be aware of ? Or this is just unexpected ?

How to reproduce

Install a bundle and inherit from AbstractController

Possible Solution

No response

Additional Context

No response

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

      0