示例#1
0
 /**
  * Build the admin's roles list
  */
 private function buildExcludedRolesList()
 {
     $excludeRoles = $this->getExcludeRoles();
     foreach ($this->excludedAdmins as $admin => $excludedRoles) {
         $roles = empty($excludedRoles) ? $this->adminRoles : $excludedRoles;
         foreach ($roles as $role) {
             $excludeRoles[] = $this->rolesTransformer->transformAdminRole($admin, $role);
         }
     }
     return $excludeRoles;
 }
示例#2
0
 /**
  * Transform the roles list
  *
  * @param array $roles
  * @param array $exclude
  *
  * @return array
  */
 public function transformRolesList(array $roles, array $exclude = array())
 {
     return $this->rolesTransformer->transformRolesList($roles, $exclude);
 }