Esempio n. 1
0
 private function roleTypeHandle(AclRule $e)
 {
     if ($e === null) {
         throw new Exceptions\NullPointerException("Argument Event cannot be null", 0);
     }
     try {
         $role = null;
         $id = $this->getMixId($e->getRole());
         if ($id !== null) {
             $role = $this->roleService->getRole($id, false);
         }
         $e->setRole($role);
     } catch (\Exception $e) {
         throw new Exceptions\DataErrorException($e->getMessage(), $e->getCode(), $e->getPrevious());
     }
 }