Пример #1
0
 /**
  * Function to add new user
  *
  * @param string $userName
  * @param string $password
  * @return void
  * @throws Exception
  */
 public function addUser($userName, $password, $fullName)
 {
     try {
         $this->userStoreManager->addUser($userName, $password, $fullName);
     } catch (Exception $ex) {
         throw new Exception("Unable to add new user", 0, $ex);
     }
 }