yii\composer\Plugin - Yii2 类参考手册

Class yii\composer\Plugin

Inheritanceyii\composer\Plugin
ImplementsComposer\EventDispatcher\EventSubscriberInterface, Composer\Plugin\PluginInterface
Available since version2.0

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

Public Methods

隐藏继承的方法 Hide inherited methods

方法 Method简介 Description定义在 Defined By
activate() yii\composer\Plugin
checkPackageUpdates() Listen to POST_PACKAGE_UPDATE event and take note of the package updates. 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

方法详情 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
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