\Symfony\Component\Console\EventConsoleCommandEvent

Allows to do things before the command is executed, like skipping the command or changing the input.

Summary

Methods
Properties
Constants
__construct()
getCommand()
getInput()
getOutput()
disableCommand()
enableCommand()
commandShouldRun()
No public properties found
RETURN_CODE_DISABLED
No protected methods found
$command
N/A
No private methods found
$input
$output
$commandShouldRun
N/A

Constants

RETURN_CODE_DISABLED

RETURN_CODE_DISABLED = 113

The return code for skipped commands, this will also be passed into the terminate event.

Properties

$command

$command : 

Type

$input

$input : 

Type

$output

$output : 

Type

$commandShouldRun

$commandShouldRun : 

Indicates if the command should be run or skipped.

Type

Methods

disableCommand()

disableCommand() : boolean

Disables the command, so it won't be run.

Returns

boolean

enableCommand()

enableCommand() : boolean

Enables the command.

Returns

boolean

commandShouldRun()

commandShouldRun() : boolean

Returns true if the command is runnable, false otherwise.

Returns

boolean