From b848c2d7c142aafa05038e5bbc5420c1f0330b41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Droz?= Date: Wed, 5 Aug 2020 00:31:46 -0300 Subject: [PATCH] support composer v2 --- composer.json | 2 +- src/ComposerPlugin.php | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 177a763..2017bbf 100644 --- a/composer.json +++ b/composer.json @@ -10,7 +10,7 @@ ], "require": { "php": "^7.1", - "composer-plugin-api": "^1.1", + "composer-plugin-api": "^1.1|^2.0", "symfony/flex": "^1.2" }, "require-dev": { diff --git a/src/ComposerPlugin.php b/src/ComposerPlugin.php index e9f1e2b..e108500 100644 --- a/src/ComposerPlugin.php +++ b/src/ComposerPlugin.php @@ -153,4 +153,14 @@ private function processPackageEvent(PackageEvent $event) $this->configurator->install($recipe, $lock); } } + + public function deactivate(Composer $composer, IOInterface $io): void + { + // Nothing to do here, as all features are provided through event listeners + } + + public function uninstall(Composer $composer, IOInterface $io): void + { + // Nothing to do here, as all features are provided through event listeners + } }