From e1235502357e95986033c6bef9d9360ffc100ca6 Mon Sep 17 00:00:00 2001 From: Damien Calesse <2787828+kranack@users.noreply.github.com> Date: Sat, 14 Nov 2020 23:36:46 +0100 Subject: [PATCH] Update composer plugin api requirement (#27) * Update composer plugin api requirement * Add deactivate and uninstall methods --- composer.json | 2 +- src/CleanupPlugin.php | 18 +++++++++++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index b7396a4..ef888ae 100644 --- a/composer.json +++ b/composer.json @@ -10,7 +10,7 @@ } ], "require": { - "composer-plugin-api": "^1.0" + "composer-plugin-api": "^2.0" }, "autoload": { "psr-4": { diff --git a/src/CleanupPlugin.php b/src/CleanupPlugin.php index f12b97d..edb0ec6 100644 --- a/src/CleanupPlugin.php +++ b/src/CleanupPlugin.php @@ -35,7 +35,23 @@ public function activate(Composer $composer, IOInterface $io) $this->config = $composer->getConfig(); $this->filesystem = new Filesystem(); $this->rules = CleanupRules::getRules(); - } + } + + /** + * {@inheritDoc} + */ + public function deactivate(Composer $composer, IOInterface $io) + { + // + } + + /** + * {@inheritDoc} + */ + public function uninstall(Composer $composer, IOInterface $io) + { + // + } /** * {@inheritDoc}