ApiKeyActor
final class ApiKeyActor implements ActorInterface (View source)
The actor of an API request: the owner of the key (or the Basic auth user) that authenticated it. Built once per request after authentication succeeds.
Methods
__construct(int $userId, string|null $username)
No description
int|null
userId()
The acting user's id, null when nobody is authenticated
string|null
username()
The acting user's login name, null when nobody is authenticated
Details
__construct(int $userId, string|null $username)
No description
int|null
userId()
The acting user's id, null when nobody is authenticated
string|null
username()
The acting user's login name, null when nobody is authenticated