Prohibitable
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.
at line 28
static void
flushState()
Flush all static state.
at line 36
protected bool
isProhibited(bool $quiet = false)
Determine if the command is prohibited from running and display a warning if so.