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
Copy file name to clipboardExpand all lines: cookbook/security/voters.rst
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -102,11 +102,11 @@ the security layer. This can be done easily through the service container.
102
102
103
103
..tip::
104
104
105
-
Themethods supportsAttribute() and supportsClass() arenot being called
106
-
internally by the framework. Once you have registered yourvoter the vote()
107
-
method will always be called, not depending on yourrestrictions. Therefore
108
-
you need to call those methods in your implementationof the vote() method.
109
-
105
+
Your implementation of themethods:method:`Symfony\\Component\\Security\\Core\\Authorization\\Voter\\VoterInterface::supportsAttribute` and`Symfony\\Component\\Security\\Core\\Authorization\\Voter\\VoterInterface::supportsClass` are
106
+
not being calledinternally by the framework. Once you have registered your
107
+
voter the ``vote()``method will always be called, not depending on your
108
+
restrictions. Thereforeyou need to call those methods in your implementation