Composer API
Class

Composer\Installer\InstallerEvent

class InstallerEvent extends Event

An event for all installer.

Methods

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

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

IOInterface getIO()

bool isDevMode()

PolicyInterface getPolicy()

Pool getPool()

CompositeRepository getInstalledRepo()

Request getRequest()

OperationInterface[] getOperations()

Details

at line 84
public __construct(string $eventName, Composer $composer, IOInterface $io, bool $devMode, PolicyInterface $policy, Pool $pool, CompositeRepository $installedRepo, Request $request, array $operations = array())

Constructor.

Parameters

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

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

at line 101
public Composer getComposer()

Return Value

Composer

at line 109
public IOInterface getIO()

Return Value

IOInterface

at line 117
public bool isDevMode()

Return Value

bool

at line 125
public PolicyInterface getPolicy()

Return Value

PolicyInterface

at line 133
public Pool getPool()

Return Value

Pool

at line 141
public CompositeRepository getInstalledRepo()

Return Value

CompositeRepository

at line 149
public Request getRequest()

Return Value

Request

at line 157
public OperationInterface[] getOperations()

Return Value

OperationInterface[]