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
*
@@ -106,35 +80,12 @@ public function vote(TokenInterface $token, $object, array $attributes)
106
80
* To determine if the passed class is instance
B41A
of the supported class, the
107
81
* isClassInstanceOf() method can be used.
108
82
*
109
-
* This method will become abstract in 3.0.
110
-
*
111
83
* @param string $attribute An attribute
112
84
* @param string $class The fully qualified class name of the passed object
113
85
*
114
86
* @return bool True if the attribute and class is supported, false otherwise
115
87
*/
116
-
protectedfunctionsupports($attribute, $class)
117
-
{
118
-
@trigger_error('The getSupportedClasses and getSupportedAttributes methods are deprecated since version 2.8 and will be removed in version 3.0. Overwrite supports instead.');
0 commit comments