private function voteForObject(TokenInterface $token, $object, array $attributes)
    {
        if (self::ACCESS_GRANTED !== $result = parent::vote($token, $object, $attributes)) {
            // try class-scope ace
            $objectIdentity = $this->getClassScopeObjectIdentity($object);
            $result = parent::vote($token, $objectIdentity, $attributes);
        }

        return $result;
    }
private function voteForObject(TokenInterface $token, $object, array $attributes)
    {
        if (self::ACCESS_GRANTED !== $result = parent::vote($token, $object, $attributes)) {
            // try class-scope ace
            $objectIdentity = $this->getClassScopeObjectIdentity($object);
            $result = parent::vote($token, $objectIdentity, $attributes);
        }

        return $result;
    }
private function voteForObject ( TokenInterface $ token , $ object , array $ attributes ) { if ( self :: ACCESS_GRANTED !== $ result = parent :: vote ( $ token , $ object , $ attributes ) ) { // try class-scope ace $ objectIdentity = $ this -> getClassScopeObjectIdentity ( $ object ) ; $ result = parent :: vote ( $ token , $ objectIdentity , $ attributes ) ; } return $ result ; }
Returns the vote for the cuurent object, if denied try the vote for the general object.

@param \Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token
@param object|ObjectIdentityInterface                                       $object
@param array                                                                $attributes

@return integer either ACCESS_GRANTED, ACCESS_ABSTAIN, or ACCESS_DENIED
Returns the vote for the cuurent object if denied try the vote for the general object .