Zepi/Web/AccessControl/src/Manager/GroupManager.php
public function delete(EntityInterface $group)
    {
        if (!is_a($group, self::ACCESS_ENTITY_TYPE)) {
            throw new Exception('The given entity (' . get_class($group) . ') is not compatible with this data source (' . self::class . '.');
        }
        
        // If the uuid does not exists we cannot delete the group
        if (!$this->accessControlManager->hasAccessEntityForUuid(self::ACCESS_ENTITY_TYPE, $group->getUuid())) {
            throw new Exception('Cannot update the group. Group does not exist.');
        }
    
        // Delete the access entity
        return $this->accessControlManager->deleteAccessEntity($group);
    }
public function delete(EntityInterface $group)
    {
        if (!is_a($group, self::ACCESS_ENTITY_TYPE)) {
            throw new Exception('The given entity (' . get_class($group) . ') is not compatible with this data source (' . self::class . '.');
        }
        
        // If the uuid does not exists we cannot delete the group
        if (!$this->accessControlManager->hasAccessEntityForUuid(self::ACCESS_ENTITY_TYPE, $group->getUuid())) {
            throw new Exception('Cannot update the group. Group does not exist.');
        }
    
        // Delete the access entity
        return $this->accessControlManager->deleteAccessEntity($group);
    }
public function delete ( EntityInterface $ group ) { if ( ! is_a ( $ group , self :: ACCESS_ENTITY_TYPE ) ) { throw new Exception ( 'The given entity (' . get_class ( $ group ) . ') is not compatible with this data source (' . self :: class . '.' ) ; } // If the uuid does not exists we cannot delete the group if ( ! $ this -> accessControlManager -> hasAccessEntityForUuid ( self :: ACCESS_ENTITY_TYPE , $ group -> getUuid ( ) ) ) { throw new Exception ( 'Cannot update the group. Group does not exist.' ) ; } // Delete the access entity return $ this -> accessControlManager -> deleteAccessEntity ( $ group ) ; }
Deletes the group with the given uuid

@param \Zepi\DataSource\Core\Entity\EntityInterface $group
@return boolean

@throws \Zepi\Web\AccessControl\Exception The given entity is not compatible with this data source.
@throws \Zepi\Web\AccessControl\Exception Cannot delete the group. Group does not exist.
Deletes the group with the given uuid