public function getAcl($objectIdentity)
    {
        $this->enforceObjectIdentity($objectIdentity);

        try {
            $acl = $this->securityContext->getACLProvider()->createAcl($objectIdentity);
        } catch (AclAlreadyExistsException $e) {
            $acl = $this->securityContext->getACLProvider()->findAcl($objectIdentity);
        }

        return $acl;
    }
public function getAcl($objectIdentity)
    {
        $this->enforceObjectIdentity($objectIdentity);

        try {
            $acl = $this->securityContext->getACLProvider()->createAcl($objectIdentity);
        } catch (AclAlreadyExistsException $e) {
            $acl = $this->securityContext->getACLProvider()->findAcl($objectIdentity);
        }

        return $acl;
    }
public function getAcl ( $ objectIdentity ) { $ this -> enforceObjectIdentity ( $ objectIdentity ) ; try { $ acl = $ this -> securityContext -> getACLProvider ( ) -> createAcl ( $ objectIdentity ) ; } catch ( AclAlreadyExistsException $ e ) { $ acl = $ this -> securityContext -> getACLProvider ( ) -> findAcl ( $ objectIdentity ) ; } return $ acl ; }
Get ACL for the given domain object.

@param  ObjectIdentityInterface|AbstractObjectIdentifiable $objectIdentity
@return Acl
Get ACL for the given domain object .