public createAction ( string $username, array $password, |
||
$username | string | The user name (ie. account identifier) of the new user |
$password | array | Expects an array in the format array(' |
$user | The user to create | |
$roleIdentifiers | array | A list of roles (role identifiers) to assign to the new user |
return | void |
public function createAction($username, array $password, User $user, array $roleIdentifiers)
{
$this->userService->addUser($username, $password[0], $user, $roleIdentifiers);
$this->addFlashMessage('The user "%s" has been created.', 'User created', Message::SEVERITY_OK, array(htmlspecialchars($username)), 1416225561);
$this->redirect('index');
}