From 374f223a17434a6fbb9e85353f9e95987a7fc044 Mon Sep 17 00:00:00 2001 From: Maxime Rainville Date: Mon, 26 Oct 2020 13:55:21 +1300 Subject: [PATCH] API Add support for Composer 2 (#16) --- composer.json | 4 ++-- src/RecipePlugin.php | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index e2f32a3..447bd61 100644 --- a/composer.json +++ b/composer.json @@ -22,10 +22,10 @@ "lint-clean": "phpcbf src/" }, "require": { - "composer-plugin-api": "^1.1" + "composer-plugin-api": "^1.1|^2" }, "require-dev": { - "composer/composer": "^1.2" + "composer/composer": "^1.2|2" }, "minimum-stability": "dev" } diff --git a/src/RecipePlugin.php b/src/RecipePlugin.php index 2e9e716..ecdc3fe 100644 --- a/src/RecipePlugin.php +++ b/src/RecipePlugin.php @@ -133,4 +133,15 @@ public function getCapabilities() CommandProvider::class => RecipeCommandProvider::class ]; } + + + public function deactivate(Composer $composer, IOInterface $io) + { + + } + + public function uninstall(Composer $composer, IOInterface $io) + { + + } }