class PluginEvents (View source)

The Plugin Events.

Constants

INIT

The INIT event occurs after a Composer instance is done being initialized

The event listener method receives a Composer\EventDispatcher\Event instance.

COMMAND

The COMMAND event occurs as a command begins

The event listener method receives a Composer\Plugin\CommandEvent instance.

PRE_FILE_DOWNLOAD

The PRE_FILE_DOWNLOAD event occurs before downloading a file

The event listener method receives a Composer\Plugin\PreFileDownloadEvent instance.

PRE_COMMAND_RUN

The PRE_COMMAND_RUN event occurs before a command is executed and lets you modify the input arguments/options

The event listener method receives a Composer\Plugin\PreCommandRunEvent instance.