class PackageEvent extends InstallerEvent (View source)

The Package Event.

Properties

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

Methods

__construct(string $eventName, Composer $composer, IOInterface $io, bool $devMode, PolicyInterface $policy, Pool $pool, CompositeRepository $installedRepo, Request $request, array $operations, OperationInterface $operation)

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
getComposer()

No description

getIO()

No description

bool
isDevMode()

No description

getPolicy()

No description

getPool()

No description

getRequest()

No description

getOperation()

Returns the package instance.

Details

__construct(string $eventName, Composer $composer, IOInterface $io, bool $devMode, PolicyInterface $policy, Pool $pool, CompositeRepository $installedRepo, Request $request, array $operations, OperationInterface $operation)

Constructor.

Parameters

string $eventName
Composer $composer
IOInterface $io
bool $devMode
PolicyInterface $policy
Pool $pool
CompositeRepository $installedRepo
Request $request
array $operations
OperationInterface $operation

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

Composer getComposer()

Return Value

Composer

IOInterface getIO()

Return Value

IOInterface

bool isDevMode()

Return Value

bool

PolicyInterface getPolicy()

Return Value

PolicyInterface

Pool getPool()

Return Value

Pool

CompositeRepository getInstalledRepo()

Return Value

CompositeRepository

Request getRequest()

Return Value

Request

OperationInterface[] getOperations()

Return Value

OperationInterface[]

OperationInterface getOperation()

Returns the package instance.

Return Value

OperationInterface