Skip to content

Commit 874c840

Browse files
committed
Removed deprecated methods from VoterInterface
1 parent 64f8a1e commit 874c840

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

components/security/authorization.rst

-13
Original file line numberDiff line numberDiff line change
@@ -85,25 +85,12 @@ of :class:`Symfony\\Component\\Security\\Core\\Authorization\\Voter\\VoterInterf
8585
which means they have to implement a few methods which allows the decision
8686
manager to use them:
8787

88-
``supportsAttribute($attribute)`` (deprecated as of 2.8)
89-
will be used to check if the voter knows how to handle the given attribute;
90-
91-
``supportsClass($class)`` (deprecated as of 2.8)
92-
will be used to check if the voter is able to grant or deny access for
93-
an object of the given class;
94-
9588
``vote(TokenInterface $token, $object, array $attributes)``
9689
this method will do the actual voting and return a value equal to one
9790
of the class constants of :class:`Symfony\\Component\\Security\\Core\\Authorization\\Voter\\VoterInterface`,
9891
i.e. ``VoterInterface::ACCESS_GRANTED``, ``VoterInterface::ACCESS_DENIED``
9992
or ``VoterInterface::ACCESS_ABSTAIN``;
10093

101-
.. note::
102-
103-
The ``supportsAttribute()`` and ``supportsClass()`` methods are deprecated
104-
as of Symfony 2.8 and no longer required in 3.0. These methods should not
105-
be called outside the voter class.
106-
10794
The Security component contains some standard voters which cover many use
10895
cases:
10996

0 commit comments

Comments
 (0)