From 0c517ce969829d3f5beafb0fb3230a7a30185667 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Tue, 22 Oct 2013 21:06:17 -0400 Subject: [PATCH] Renamed InstallerPlugin to Plugin --- extensions/composer/composer.json | 2 +- .../composer/yii/composer/InstallerPlugin.php | 34 ---------------------- extensions/composer/yii/composer/Plugin.php | 34 ++++++++++++++++++++++ 3 files changed, 35 insertions(+), 35 deletions(-) delete mode 100644 extensions/composer/yii/composer/InstallerPlugin.php create mode 100644 extensions/composer/yii/composer/Plugin.php diff --git a/extensions/composer/composer.json b/extensions/composer/composer.json index 1b2d720..74295a0 100644 --- a/extensions/composer/composer.json +++ b/extensions/composer/composer.json @@ -22,7 +22,7 @@ "psr-0": { "yii\\composer\\": "" } }, "extra": { - "class": "yii\\composer\\InstallerPlugin" + "class": "yii\\composer\\Plugin" }, "require": { "composer-plugin-api": "1.0.0" diff --git a/extensions/composer/yii/composer/InstallerPlugin.php b/extensions/composer/yii/composer/InstallerPlugin.php deleted file mode 100644 index 0b8ce5f..0000000 --- a/extensions/composer/yii/composer/InstallerPlugin.php +++ /dev/null @@ -1,34 +0,0 @@ - - * @since 2.0 - */ -class InstallerPlugin implements PluginInterface -{ - /** - * @inheritdoc - */ - public function activate(Composer $composer, IOInterface $io) - { - $installer = new Installer($io, $composer); - $composer->getInstallationManager()->addInstaller($installer); - $file = rtrim($composer->getConfig()->get('vendor-dir'), '/') . '/yii-extensions.php'; - if (!is_file($file)) { - file_put_contents($file, " + * @since 2.0 + */ +class Plugin implements PluginInterface +{ + /** + * @inheritdoc + */ + public function activate(Composer $composer, IOInterface $io) + { + $installer = new Installer($io, $composer); + $composer->getInstallationManager()->addInstaller($installer); + $file = rtrim($composer->getConfig()->get('vendor-dir'), '/') . '/yii-extensions.php'; + if (!is_file($file)) { + file_put_contents($file, "