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

$devMode

$devMode : boolean

Type

boolean

$propagationStopped

$propagationStopped : boolean

Type

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

Methods

__construct()

__construct(string  $eventName, \Composer\Composer  $composer, \Composer\IO\IOInterface  $io, boolean  $devMode, \Composer\DependencyResolver\PolicyInterface  $policy, \Composer\DependencyResolver\Pool  $pool, \Composer\Repository\CompositeRepository  $installedRepo, \Composer\DependencyResolver\Request  $request, array<mixed,\Composer\DependencyResolver\Operation\OperationInterface>  $operations, \Composer\DependencyResolver\Operation\OperationInterface  $operation) 

Constructor.

Parameters

string $eventName
\Composer\Composer $composer
\Composer\IO\IOInterface $io
boolean $devMode
\Composer\DependencyResolver\PolicyInterface $policy
\Composer\DependencyResolver\Pool $pool
\Composer\Repository\CompositeRepository $installedRepo
\Composer\DependencyResolver\Request $request
array<mixed,\Composer\DependencyResolver\Operation\OperationInterface> $operations
\Composer\DependencyResolver\Operation\OperationInterface $operation

isDevMode()

isDevMode() : boolean

Returns

boolean

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