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

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

Parameters

int|null $userId
string|null $username

static CommandLineActor system()

No description

Return Value

CommandLineActor

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