class PreCommandRunEvent extends Event (View source)

The pre command run event.

Properties

protected string $name from Event
protected array $args from Event
protected array $flags from Event

Methods

__construct(string $name, InputInterface $input, string $command)

Constructor.

string
getName()

Returns the event's name.

from Event
array
getArguments()

Returns the event's arguments.

from Event
array
getFlags()

Returns the event's flags.

from Event
bool
isPropagationStopped()

Checks if stopPropagation has been called

from Event
stopPropagation()

Prevents the event from being passed to further listeners

from Event
InputInterface
getInput()

Returns the console input

string
getCommand()

Returns the command about to be executed

Details

__construct(string $name, InputInterface $input, string $command)

Constructor.

Parameters

string $name The event name
InputInterface $input
string $command The command about to be executed

string getName()

Returns the event's name.

Return Value

string The event name

array getArguments()

Returns the event's arguments.

Return Value

array The event arguments

array getFlags()

Returns the event's flags.

Return Value

array The event flags

bool isPropagationStopped()

Checks if stopPropagation has been called

Return Value

bool Whether propagation has been stopped

stopPropagation()

Prevents the event from being passed to further listeners

InputInterface getInput()

Returns the console input

Return Value

InputInterface

string getCommand()

Returns the command about to be executed

Return Value

string