Skip to content

Commit 2e0ed92

Browse files
peterrehmweaverryan
authored andcommitted
Line Format
1 parent 422b2c0 commit 2e0ed92

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cookbook/security/voters.rst

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

103103
.. tip::
104104

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

0 commit comments

Comments
 (0)