Skip to content

Commit 422b2c0

Browse files
peterrehmweaverryan
authored andcommitted
Added API Links
1 parent 233cb32 commit 422b2c0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cookbook/security/voters.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,11 @@ the security layer. This can be done easily through the service container.
102102

103103
.. tip::
104104

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
109+
of the ``vote()`` method.
110110

111111
Declaring the Voter as a Service
112112
--------------------------------

0 commit comments

Comments
 (0)