Пример #1
0
 /**
  * Function to add new role by providing the role name.
  *
  * @param string $roleName
  */
 public function addRole($roleName){
     try {
         return $this->userStoreManager->addRole( $roleName);
     } catch (Exception $ex) {
         throw new Exception("Unable to add this role", 0, $ex);
     }
 }