Composer API
Class

Composer\Installer\PackageEvent

class PackageEvent extends InstallerEvent

The Package 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
boolean isPropagationStopped()

Checks if stopPropagation has been called

from Event
stopPropagation()

Prevents the event from being passed to further listeners

from Event
Composer getComposer()

from InstallerEvent
IOInterface getIO()

from InstallerEvent
bool isDevMode()

from InstallerEvent
PolicyInterface getPolicy()

from InstallerEvent
Pool getPool()

from InstallerEvent
CompositeRepository getInstalledRepo()

from InstallerEvent
Request getRequest()

from InstallerEvent
OperationInterface[] getOperations()

from InstallerEvent
OperationInterface getOperation()

Returns the package instance.

Details

at line 49
public __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

in Event at line 61
public string getName()

Returns the event's name.

Return Value

string The event name

in Event at line 71
public array getArguments()

Returns the event's arguments.

Return Value

array The event arguments

in Event at line 81
public array getFlags()

Returns the event's flags.

Return Value

array The event flags

in Event at line 91
public boolean isPropagationStopped()

Checks if stopPropagation has been called

Return Value

boolean Whether propagation has been stopped

in Event at line 99
public stopPropagation()

Prevents the event from being passed to further listeners

in InstallerEvent at line 101
public Composer getComposer()

Return Value

Composer

in InstallerEvent at line 109
public IOInterface getIO()

Return Value

IOInterface

in InstallerEvent at line 117
public bool isDevMode()

Return Value

bool

in InstallerEvent at line 125
public PolicyInterface getPolicy()

Return Value

PolicyInterface

in InstallerEvent at line 133
public Pool getPool()

Return Value

Pool

in InstallerEvent at line 141
public CompositeRepository getInstalledRepo()

Return Value

CompositeRepository

in InstallerEvent at line 149
public Request getRequest()

Return Value

Request

in InstallerEvent at line 157
public OperationInterface[] getOperations()

Return Value

OperationInterface[]

at line 61
public OperationInterface getOperation()

Returns the package instance.

Return Value

OperationInterface