From 2395cec5b54ea32913ac8e70e719945e3f507357 Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen@paragon-es.de> Date: Tue, 7 Jul 2020 17:02:36 +0200 Subject: [PATCH] composer/plugin/drupal-spoons#7 Add support for composer 2 while still supporting composer 1 --- composer.json | 4 ++-- src/Plugin.php | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index b71a4b7..6ef3a63 100644 --- a/composer.json +++ b/composer.json @@ -18,8 +18,8 @@ }, "require": { "php": ">=7.1", - "composer/composer": "^1.10", - "composer-plugin-api": "^1.0.0", + "composer/composer": "^1.0 || ^2.0", + "composer-plugin-api": "^1.0 || ^2.0", "oohology/gitignorewriter": "^1.1" }, "minimum-stability": "dev", diff --git a/src/Plugin.php b/src/Plugin.php index 32fd108..a30fc91 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -30,6 +30,18 @@ class Plugin implements PluginInterface, EventSubscriberInterface, Capable { $this->handler = new Handler($composer, $io); } + /** + * {@inheritdoc} + */ + public function deactivate(Composer $composer, IOInterface $io) { + } + + /** + * {@inheritdoc} + */ + public function uninstall(Composer $composer, IOInterface $io) { + } + /** * {@inheritdoc} */ -- GitLab