Closed
Description
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