code: 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;
      }
docs: {@inheritdoc}
  
  @throws \Exception