File tree 1 file changed +8
-2
lines changed 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -90,10 +90,10 @@ of :class:`Symfony\\Component\\Security\\Core\\Authorization\\Voter\\VoterInterf
90
90
which means they have to implement a few methods which allows the decision
91
91
manager to use them:
92
92
93
- ``supportsAttribute($attribute) ``
93
+ ``supportsAttribute($attribute) `` (deprecated as of 2.8)
94
94
will be used to check if the voter knows how to handle the given attribute;
95
95
96
- ``supportsClass($class) ``
96
+ ``supportsClass($class) `` (deprecated as of 2.8)
97
97
will be used to check if the voter is able to grant or deny access for
98
98
an object of the given class;
99
99
@@ -103,6 +103,12 @@ manager to use them:
103
103
i.e. ``VoterInterface::ACCESS_GRANTED ``, ``VoterInterface::ACCESS_DENIED ``
104
104
or ``VoterInterface::ACCESS_ABSTAIN ``;
105
105
106
+ .. note ::
107
+
108
+ The ``supportsAttribute() `` and ``supportsClass() `` methods are deprecated
109
+ as of Symfony 2.8 and no longer required in 3.0. These methods should not
110
+ be called outside the voter class.
111
+
106
112
The Security component contains some standard voters which cover many use
107
113
cases:
108
114
You can’t perform that action at this time.
0 commit comments