Skip to content

Commit 3f7191f

Browse files
committed
minor symfony#6105 Removed deprecated methods from VoterInterface (edefimov)
This PR was merged into the 3.0 branch. Discussion ---------- Removed deprecated methods from VoterInterface | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 3.0 | Fixed tickets | This PR removes methods _supportsAttribute_, _supportsClass_ from _VoterInterface_ documentation Commits ------- 874c840 Removed deprecated methods from VoterInterface
2 parents 6eeb61e + 874c840 commit 3f7191f

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

Diff for: 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)