getSupportedAttributes($attribute), true) && in_array(get_class($subject), $this->getSupportedClasses(), true); } protected function voteOnAttribute($attribute, $subject, TokenInterface $token) { @trigger_error('This voter should implements the new `voteOnAttribute` ' . 'methods introduced by Symfony 3.0, and do not rely on ' . 'isGranted method', E_USER_DEPRECATED); // @TODO: isGranted() should be created in here and made abstract or in ChillVoterInterface. return $this->isGranted($attribute, $subject, $token->getUser()); } }