public function vote(TokenInterface $token, $object, array $attributes)
    {
        if (\is_object($object)) {
            return $this->classVoter->vote($token, \get_class($object), $attributes);
        }

        return VoterInterface::ACCESS_ABSTAIN;
    }
public function vote(TokenInterface $token, $object, array $attributes)
    {
        if (\is_object($object)) {
            return $this->classVoter->vote($token, \get_class($object), $attributes);
        }

        return VoterInterface::ACCESS_ABSTAIN;
    }
{@inheritdoc}

@throws \Exception