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 (!$object || !$this->supportsClass(get_class($object))) {
65
+
if (!$object) {
62
66
returnself::ACCESS_ABSTAIN;
63
67
}
64
68
65
69
// abstain vote by default in case none of the attributes are supported
66
70
$vote = self::ACCESS_ABSTAIN;
71
+
$class = get_class($object);
67
72
68
73
foreach ($attributesas$attribute) {
69
-
if (!$this->supportsAttribute($attribute)) {
74
+
if (!$this->supports($attribute, $class)) {
70
75
continue;
71
76
}
72
77
@@ -82,19 +87,57 @@ public function vote(TokenInterface $token, $object, array $attributes)
82
87
return$vote;
83
88
}
84
89
90
+
protectedfunctionsupports($attribute, $class)
91
+
{
92
+
@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