We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bff6ab commit 233cb32Copy full SHA for 233cb32
cookbook/security/voters.rst
@@ -100,6 +100,14 @@ and compare the IP address against a set of blacklisted IP addresses:
100
That's it! The voter is done. The next step is to inject the voter into
101
the security layer. This can be done easily through the service container.
102
103
+.. tip::
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
110
111
Declaring the Voter as a Service
112
--------------------------------
113
0 commit comments