/**
  * Function to get the list of all existing roles
  *
  * @return roles list
  */
 public function getAllRoles(){
     try {
         return $this->userStoreManager->getRoleNames();
     } catch (Exception $ex) {
         throw new Exception("Unable to get all roles", 0, $ex);
     }
 }
Exemple #2
0
 /**
  * Function to get the list of all existing roles
  *
  * @return roles list
  */
 public function getAllRoles()
 {
     try {
         $roles = $this->userStoreManager->getRoleNames();
         return array_filter($roles, "Wsis::nonInternalRoles");
         var_dump($roles);
         exit;
     } catch (Exception $ex) {
         throw new Exception("Unable to get all roles", 0, $ex);
     }
 }