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
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
-
The methods supportsAttribute() and supportsClass() are not being called
106
-
internally by the framework. Once you have registered your voter the vote()
107
-
method will always be called, not depending on your restrictions. Therefore
108
-
you need to call those methods in your implementation of the vote() method.
109
-
105
+
Your implementation of the methods :method:`Symfony\\Component\\Security\\Core\\Authorization\\Voter\\VoterInterface::supportsAttribute` and `Symfony\\Component\\Security\\Core\\Authorization\\Voter\\VoterInterface::supportsClass` are
106
+
not being called internally by the framework. Once you have registered your
107
+
voter the ``vote()`` method will always be called, not depending on your
108
+
restrictions. Therefore you need to call those methods in your implementation
0 commit comments