Documentation

GetCurrentUser

Use case for getting the current authenticated user.

Tags
since
3.0.0

Table of Contents

Properties

$cachedUser  : User|null
Cached current user.
$repository  : UserRepositoryInterface
User repository.

Methods

__construct()  : mixed
Create a new GetCurrentUser use case.
clearCache()  : void
Clear the cached user.
execute()  : User|null
Execute to get the current user.

Properties

Methods

execute()

Execute to get the current user.

public execute() : User|null
Return values
User|null

The current user or null if not authenticated


        
On this page

Search results