ConsoleCommandEvent
class ConsoleCommandEvent extends ConsoleEvent
Allows to do things before the command is executed, like skipping the command or changing the input.
Constants
RETURN_CODE_DISABLED |
The return code for skipped commands, this will also be passed into the terminate event. |
Properties
protected | $command | from ConsoleEvent |
Methods
from ConsoleEvent
bool
disableCommand()
Disables the command, so it won't be run.
bool
enableCommand()
Enables the command.
bool
commandShouldRun()
Returns true if the command is runnable, false otherwise.