Neuron-PHP

Updater
in package
implements IUserUpdater

User update service.

Updates existing users and their passwords.

Table of Contents

Interfaces

IUserUpdater
User update service interface

Properties

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

Methods

__construct()  : mixed
update()  : User
Update an existing user from DTO

Properties

Methods

update()

Update an existing user from DTO

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

DTO containing id, username, email, role, password (optional)

Tags
throws
Exception

If user not found, password doesn't meet requirements, or update fails

Return values
User

        
On this page

Search results