Exemplo n.º 1
0
 /**
  * @param $role
  * @throws Exception\RoleDoesNotExistException
  * @return AclRole
  */
 protected function getRoleModel($role)
 {
     $model = AclRole::findFirstByName($role);
     if (!$model) {
         throw new RoleDoesNotExistException($role);
     }
     return $model;
 }