Neos\Neos\Controller\Module\Administration\UsersController::createAction PHP Метод

createAction() публичный Метод

Create a new user
public createAction ( string $username, array $password, User $user, array $roleIdentifiers ) : void
$username string The user name (ie. account identifier) of the new user
$password array Expects an array in the format array('', '')
$user Neos\Neos\Domain\Model\User The user to create
$roleIdentifiers array A list of roles (role identifiers) to assign to the new user
Результат 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');
    }