public function deleteClassAce($objectIdentity, $sid)
    {
        $this->enforceObjectIdentity($objectIdentity);
        $this->enforceSecurityIdentity($sid);

        $acl = $this->getAcl($objectIdentity);

        $found = false;

        foreach ($acl->getClassAces() as $index => $ace) {
            if ($ace->getSecurityIdentity()->equals($sid)) {
                $acl->deleteClassAce($index);
                $found = true;
                break;
            }
        }

        if (false === $found) {
            throw new InvalidArgumentException('ACE not found for the supplied combination of ObjectIdentity and SecurityIdentity');
        }

        $this->securityContext->getACLProvider()->updateAcl($acl);
    }
public function deleteClassAce($objectIdentity, $sid)
    {
        $this->enforceObjectIdentity($objectIdentity);
        $this->enforceSecurityIdentity($sid);

        $acl = $this->getAcl($objectIdentity);

        $found = false;

        foreach ($acl->getClassAces() as $index => $ace) {
            if ($ace->getSecurityIdentity()->equals($sid)) {
                $acl->deleteClassAce($index);
                $found = true;
                break;
            }
        }

        if (false === $found) {
            throw new InvalidArgumentException('ACE not found for the supplied combination of ObjectIdentity and SecurityIdentity');
        }

        $this->securityContext->getACLProvider()->updateAcl($acl);
    }
public function deleteClassAce ( $ objectIdentity , $ sid ) { $ this -> enforceObjectIdentity ( $ objectIdentity ) ; $ this -> enforceSecurityIdentity ( $ sid ) ; $ acl = $ this -> getAcl ( $ objectIdentity ) ; $ found = false ; foreach ( $ acl -> getClassAces ( ) as $ index => $ ace ) { if ( $ ace -> getSecurityIdentity ( ) -> equals ( $ sid ) ) { $ acl -> deleteClassAce ( $ index ) ; $ found = true ; break ; } } if ( false === $ found ) { throw new InvalidArgumentException ( 'ACE not found for the supplied combination of ObjectIdentity and SecurityIdentity' ) ; } $ this -> securityContext -> getACLProvider ( ) -> updateAcl ( $ acl ) ; }
Deletes a class-scope ACE.

@param ObjectIdentityInterface|AbstractObjectIdentifiable $objectIdentity
@param SecurityIdentityInterface|UserSecurityIdentity     $sid
Deletes a class - scope ACE .