trait Prohibitable

Properties

static protected bool $prohibitedFromRunning

Indicates if the command should be prohibited from running.

Methods

static void
prohibit(bool $prohibit = true)

Indicate whether the command should be prohibited from running.

static void
flushState()

Flush all static state.

bool
isProhibited(bool $quiet = false)

Determine if the command is prohibited from running and display a warning if so.

Details

at line 20
static void prohibit(bool $prohibit = true)

Indicate whether the command should be prohibited from running.

Boot-only. The prohibition flag persists in a static property for the worker lifetime and affects every subsequent execution of this command.

Parameters

bool $prohibit

Return Value

void

at line 28
static void flushState()

Flush all static state.

Return Value

void

at line 36
protected bool isProhibited(bool $quiet = false)

Determine if the command is prohibited from running and display a warning if so.

Parameters

bool $quiet

Return Value

bool