Neuron-PHP

IRegistrationService

Registration service interface

Table of Contents

Methods

isRegistrationEnabled()  : bool
Check if user registration is enabled
register()  : User
Register a new user
registerWithDto()  : User
Register a new user from DTO

Methods

isRegistrationEnabled()

Check if user registration is enabled

public isRegistrationEnabled() : bool
Return values
bool

register()

Register a new user

public register(string $username, string $email, string $password, string $passwordConfirmation) : User
Parameters
$username : string

Username

$email : string

Email address

$password : string

Password

$passwordConfirmation : string

Password confirmation

Return values
User

Created user

registerWithDto()

Register a new user from DTO

public registerWithDto(Dto $dto) : User
Parameters
$dto : Dto

Registration DTO

Return values
User

Created user


        
On this page

Search results