ActorInterface
interface ActorInterface (View source)
Who is acting in the current request: the session user on the web, the key owner on the API. Domain rules ask this instead of reading the session.
Methods
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
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