class SessionActor implements ActorInterface (View source)

The actor of a web request: whoever the session says is logged in.

Methods

__construct(SessionInterface $session)

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(SessionInterface $session)

No description

Parameters

SessionInterface $session

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