You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if ($supportedClass === $class || is_subclass_of($class, $supportedClass)) {
43
-
returntrue;
44
-
}
45
-
}
46
-
47
-
returnfalse;
48
-
}
49
-
50
24
/**
51
25
* Iteratively check all given attributes by calling isGranted.
52
26
*
@@ -93,35 +67,12 @@ public function vote(TokenInterface $token, $object, array $attributes)
93
67
* To determine if the passed class is instance of the supported class, the
94
68
* isClassInstanceOf() method can be used.
95
69
*
96
-
* This method will become abstract in 3.0.
97
-
*
98
70
* @param string $attribute An attribute
99
71
* @param string $class The fully qualified class name of the passed object
100
72
*
101
73
* @return bool True if the attribute and class is supported, false otherwise
102
74
*/
103
-
protectedfunctionsupports($attribute, $class)
104
-
{
105
-
@trigger_error('The getSupportedClasses and getSupportedAttributes methods are deprecated since version 2.8 and will be removed in version 3.0. Overwrite supports instead.', E_USER_DEPRECATED);
0 commit comments