Documentation

UpdateProfile

Use case for updating a user's profile (username, email).

Tags
since
3.0.0

Table of Contents

Properties

$repository  : UserRepositoryInterface

Methods

__construct()  : mixed
execute()  : bool
Update the user's profile.

Properties

Methods

execute()

Update the user's profile.

public execute(User $user, string $username, string $email) : bool
Parameters
$user : User

The user to update

$username : string

New username

$email : string

New email

Tags
throws
InvalidArgumentException

If validation fails

Return values
bool

Whether the email changed (triggers re-verification)


        
On this page

Search results