File tree 1 file changed +0
-13
lines changed
1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -85,25 +85,12 @@ of :class:`Symfony\\Component\\Security\\Core\\Authorization\\Voter\\VoterInterf
85
85
which means they have to implement a few methods which allows the decision
86
86
manager to use them:
87
87
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
-
95
88
``vote(TokenInterface $token, $object, array $attributes) ``
96
89
this method will do the actual voting and return a value equal to one
97
90
of the class constants of :class: `Symfony\\ Component\\ Security\\ Core\\ Authorization\\ Voter\\ VoterInterface `,
98
91
i.e. ``VoterInterface::ACCESS_GRANTED ``, ``VoterInterface::ACCESS_DENIED ``
99
92
or ``VoterInterface::ACCESS_ABSTAIN ``;
100
93
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
-
107
94
The Security component contains some standard voters which cover many use
108
95
cases:
109
96
You can’t perform that action at this time.
0 commit comments