Neuron-PHP

Creator
in package
implements IUserCreator

User creation service.

Creates new users with password hashing and validation.

Table of Contents

Interfaces

IUserCreator
User creation service interface

Properties

$_eventEmitter  : Emitter|null
$_passwordHasher  : PasswordHasher
$_userRepository  : IUserRepository

Methods

__construct()  : mixed
create()  : User
Create a new user from DTO

Properties

Methods

create()

Create a new user from DTO

public create(Dto $request) : User
Parameters
$request : Dto

DTO containing username, email, password, role, timezone

Tags
throws
Exception

If password doesn't meet requirements or user creation fails

Return values
User

        
On this page

Search results