final class RequestActor implements ActorInterface (View source)

The actor every service of one request shares. It starts as whatever the bootstrap knows (the session user); an API controller rebinds it to the key owner once authentication succeeds, so services built before and after that point agree on who is acting.

Methods

__construct(ActorInterface $actor)

No description

void
bind(ActorInterface $actor)

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(ActorInterface $actor)

No description

Parameters

ActorInterface $actor

void bind(ActorInterface $actor)

No description

Parameters

ActorInterface $actor

Return Value

void

int|null userId()

The acting user's id, null when nobody is authenticated

Return Value

int|null

string|null username()

The acting user's login name, null when nobody is authenticated

Return Value

string|null