CommandLineActor
final class CommandLineActor implements ActorInterface (View source)
The actor of a console run: nobody (the system itself) unless the caller named a user with --as-user, in which case that user's permissions apply.
Methods
__construct(int|null $userId = null, string|null $username = null)
No description
static CommandLineActor
system()
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|null $userId = null, string|null $username = null)
No description
static CommandLineActor
system()
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