You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor #20544 [Security] Remove mention of is_granted_ $field argument (smnandre)
This PR was merged into the 7.3 branch.
Discussion
----------
[Security] Remove mention of is_granted_ `$field` argument
The third argument of is_granted / is_granted_for_user is undocumented (except on this page) (neither on Symfony docs, code, nor on... Symfony ACL Bundle docs).
It must be kept and maintained for BC reasons. But it can be missleading/frustrating to show this argument to users, when they cannot use it with a standard/recommended Symfony installation.
And if they just test it, the error could lead them to believe the AclBundle needs to be installed to use the `is_granted` function(s).
As suggested in symfony/symfony#59282 (comment) I believe "not showing it" is the "best" solution here.
Commits
-------
693b758 [Security] Remove mention of is_granted_ `$field` argument
0 commit comments