-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Problem with injection twig global variables Symfony 2.5 #12320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi there! I don't think anything has changed with this part of the code for a long time, so the change is surprising. You've done a nice job of debugging the code (to find the cached container). What I would do is open up TwigExtension (this one: https://github.com/symfony/symfony/blob/master/src/Symfony/Bundle/TwigBundle/DependencyInjection/TwigExtension.php). Specifically, I would put some temporary var_dump/die or breakpoint code around here: https://github.com/symfony/symfony/blob/master/src/Symfony/Bundle/TwigBundle/DependencyInjection/TwigExtension.php#L87 to see what's happening. Cheers! |
@judgedim Can you provide a fork of the standard edition that makes it possible to reproduce your issue? I tested your configuration with Symfony 2.5 and 2.6 and it worked as expected. |
Hi @weaverryan and @xabbuh , After additional debugging I've found problem in the my config related with changes in the Yaml Component, but as for me it seems a bit unexpected behavior |
Thanks |
Thank you very much @judgedim I had this issue after upgrading to Symfony 2.7 |
After upgrade from 2.4.10 to 2.5.6 I've got error
Variable "welcome_title" does not exist ...
config.yml
After investigation I've found difference in the app/cache/dev/appDevDebugProjectContainer.php
2.4.10
2.5.x (I've tried few version: 2.5.1, 2.5.4, , 2.5.6)
only
Bug?
Suggestions?
The text was updated successfully, but these errors were encountered: