\Composer\PluginPreCommandRunEvent

The pre command run event.

Summary

Methods
Properties
Constants
__construct()
getName()
getArguments()
getFlags()
isPropagationStopped()
stopPropagation()
getInput()
getCommand()
No public properties found
No constants found
No protected methods found
$name
$args
$flags
N/A
No private methods found
$propagationStopped
$input
$command
N/A

Properties

$name

$name : string

Type

string — This event's name

$args

$args : array

Type

array — Arguments passed by the user, these will be forwarded to CLI script handlers

$flags

$flags : array

Type

array — Flags usable in PHP script handlers

$propagationStopped

$propagationStopped : boolean

Type

boolean — Whether the event should not be passed to more listeners

$command

$command : string

Type

string

Methods

__construct()

__construct(string  $name, \Symfony\Component\Console\Input\InputInterface  $input, string  $command) 

Constructor.

Parameters

string $name

The event name

\Symfony\Component\Console\Input\InputInterface $input
string $command

The command about to be executed

getName()

getName() : string

Returns the event's name.

Returns

string —

The event name

getArguments()

getArguments() : array

Returns the event's arguments.

Returns

array —

The event arguments

getFlags()

getFlags() : array

Returns the event's flags.

Returns

array —

The event flags

isPropagationStopped()

isPropagationStopped() : boolean

Checks if stopPropagation has been called

Returns

boolean —

Whether propagation has been stopped

stopPropagation()

stopPropagation() 

Prevents the event from being passed to further listeners

getCommand()

getCommand() : string

Returns the command about to be executed

Returns

string