-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Security] is_granted twig helper is not registered #43560
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
Can you please show the output of |
|
I just checked and this condition results to false, thats why the twig function is not registered. Twig-Bridge and Security-Bundle are installed and loaded. Anything i can provide thats helps debugging this ?
|
Can you please also share your |
|
Does it change anything if you require the Twig bridge explicitly so that it is not installed as a transitive dependency? |
Yes ! Nothing was installed or updated but now its working !
But is it correct to have it explicitly added ? |
I have just experienced exactly the same issue which was solved by explicitly adding The issue started when I have removed dependency of
|
So, the issue here is that I think the fix should be to check in Up for a PR anyone? |
see #47171 |
…equired component is already installed (xabbuh) This PR was merged into the 4.4 branch. Discussion ---------- [TwigBridge] suggest to install the Twig bundle when the required component is already installed | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #43560 | License | MIT | Doc PR | Commits ------- c203ef2 suggest to install the Twig bundle when the required component is already installed
Symfony version(s) affected: 5.3.8
Description
After composer update and updating all recipes the "is_granted" twig function is not available anymore. When accessing a page i get
I have "symfony/security-bundle": "5.3.*" in my composer.json and all libs are installed in vendor/. When i debug the cache warmup, the config "templating_twig.php" does not trigger my breakpoint, other configs in the security-bundle\config do.
Login does work normally.
It worked as expected before the composer update and my application was already on 5.3.1.
How to reproduce
Not sure.
Possible Solution
Additional context
The text was updated successfully, but these errors were encountered: