This repository has been archived by the owner on Apr 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Twig Issues in Production #25
Comments
Getting the same issue with |
And another... Trying to add EasyAdminBundle. Had to patch around Doctrine's FileCache failing if the cache folder isn't writeable even though it's not trying to write to it javiereguiluz/EasyAdminBundle#1954 then ran into what I'm guessing is this Twig issue again.
|
I've reached out to the Symfony folk here symfony/symfony#25368 |
@pdugas , same here. I've changed :
To:
and it fixes the issue. Hope the solution will be found soon... |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
There appears to be something missing from the modified
Twig\Environment
object. When thecsrf_token()
function is used in a template, I'm getting an error from the baseclass'getRuntime()
method indicating it was unable to loadSymfony\Bridge\Twig\Form\TwigRenderer
. I worked around it by passing the token in from the controller instead of using the function in the template. I tried digging in to see what I could figure out but I'm not following what's going on in that class so I'm not really able to provide any insight into the root cause. Sorry.The text was updated successfully, but these errors were encountered: