Class yii\composer\Plugin

Inheritanceyii\composer\Plugin
ImplementsComposer\EventDispatcher\EventSubscriberInterface, Composer\Plugin\PluginInterface
Available since version2.0
Source Code https://github.com/yiisoft/yii2-composer/blob/master/Plugin.php

Plugin is the composer plugin that registers the Yii composer installer.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
activate() yii\composer\Plugin
checkPackageUpdates() Listen to POST_PACKAGE_UPDATE event and take note of the package updates. yii\composer\Plugin
deactivate() yii\composer\Plugin
getSubscribedEvents() yii\composer\Plugin
showUpgradeNotes() Listen to POST_UPDATE_CMD event to display information about upgrade notes if appropriate. yii\composer\Plugin
uninstall() yii\composer\Plugin

Method Details

activate() public method

public void activate ( \Composer\Composer $composer, \Composer\IO\IOInterface $io )
$composer
$io
checkPackageUpdates() public method

Listen to POST_PACKAGE_UPDATE event and take note of the package updates.

public void checkPackageUpdates ( \Composer\Installer\PackageEvent $event )
$event \Composer\Installer\PackageEvent
deactivate() public method

public void deactivate ( \Composer\Composer $composer, \Composer\IO\IOInterface $io )
$composer
$io
getSubscribedEvents() public static method

public static array getSubscribedEvents ( )
return array

The event names to listen to.

showUpgradeNotes() public method

Listen to POST_UPDATE_CMD event to display information about upgrade notes if appropriate.

public void showUpgradeNotes ( \Composer\Script\Event $event )
$event \Composer\Script\Event
uninstall() public method

public void uninstall ( \Composer\Composer $composer, \Composer\IO\IOInterface $io )
$composer
$io