yii\composer\Plugin - Yii2 类参考手册
Class yii\composer\Plugin
全部
| 方法 Methods
Inheritance | yii\composer\Plugin |
---|---|
Implements | Composer\EventDispatcher\EventSubscriberInterface, Composer\Plugin\PluginInterface |
Available since version | 2.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
public void activate ( \Composer\Composer $composer, \Composer\IO\IOInterface $io ) | ||
$composer | ||
$io |
Listen to POST_PACKAGE_UPDATE event and take note of the package updates.
public void checkPackageUpdates ( \Composer\Installer\PackageEvent $event ) | ||
$event | \Composer\Installer\PackageEvent |
public static array getSubscribedEvents ( ) | ||
return | array | The event names to listen to. |
---|
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 |