From 4ccfacc09991b6254bb6bb0861e6d58526c7ef0e Mon Sep 17 00:00:00 2001 From: amanto Date: Thu, 25 Jun 2020 22:54:45 +0300 Subject: [PATCH] Update to support composer v2.0 interface. (#11) --- composer.json | 2 +- src/Plugin.php | 20 +++++++++++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 5bc5d19..4ed9880 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ } ], "require": { - "composer-plugin-api": "^1.0" + "composer-plugin-api": "^1.0 || ^2.0" }, "autoload": { "psr-4": { diff --git a/src/Plugin.php b/src/Plugin.php index 84d0854..3de1b3a 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -33,7 +33,25 @@ public function activate(Composer $composer, IOInterface $io) $this->generator = new AutoloadGenerator($composer->getEventDispatcher(), $io); } - /** + /** + * @param Composer $composer + * @param IOInterface $io + */ + public function deactivate(Composer $composer, IOInterface $io) + { + + } + + /** + * @param Composer $composer + * @param IOInterface $io + */ + public function uninstall(Composer $composer, IOInterface $io) + { + + } + + /** * @return array */ public static function getSubscribedEvents()