From 37e8c27cf9daeecc9578860a864ffb663fdc6d39 Mon Sep 17 00:00:00 2001 From: Anthony Klose Date: Wed, 11 Nov 2020 16:05:46 -0600 Subject: [PATCH 1/4] Update composer.json Updating composer-plugin-api version to ^2.0.0 to make it compatible with Composer 2.0 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 57a1e31..f5a9c8f 100644 --- a/composer.json +++ b/composer.json @@ -5,7 +5,7 @@ "license": "GPL-2.0+", "require": { "php": ">=5.5", - "composer-plugin-api": "^1.0.0" + "composer-plugin-api": "^2.0.0" }, "autoload": { "psr-4": { From bf097f980c8feff41f24436c3a96d50213850c1c Mon Sep 17 00:00:00 2001 From: Anthony Klose Date: Wed, 11 Nov 2020 16:21:46 -0600 Subject: [PATCH 2/4] Update composer.json Made compatible with Composer 1.0 or 2.0 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index f5a9c8f..3b0003c 100644 --- a/composer.json +++ b/composer.json @@ -5,7 +5,7 @@ "license": "GPL-2.0+", "require": { "php": ">=5.5", - "composer-plugin-api": "^2.0.0" + "composer-plugin-api": "^1.0 || ^2.0" }, "autoload": { "psr-4": { From 73dffff0a39b31804d8ccad42d2850737f736d0a Mon Sep 17 00:00:00 2001 From: Anthony Klose Date: Wed, 11 Nov 2020 16:23:43 -0600 Subject: [PATCH 3/4] Update Plugin.php Added deactivate() and uninstall() functions --- src/Plugin.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/Plugin.php b/src/Plugin.php index 9398200..f7f8552 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -78,6 +78,24 @@ public function activate(Composer $composer, IOInterface $io) { $this->handler = new Handler($composer, $io); } + /** + * Deactivation hook. + * + * @param Composer $composer + * @param IOInterface $io + */ + public function deactivate(Composer $composer, IOInterface $io) { + } + + /** + * Uninstall hook. + * + * @param Composer $composer + * @param IOInterface $io + */ + public function uninstall(Composer $composer, IOInterface $io) { + } + /** * @param \Composer\Installer\PackageEvent $event */ From c48d6c0b9259549a8b947ffdef9349ebf6647d00 Mon Sep 17 00:00:00 2001 From: Anthony Klose Date: Wed, 11 Nov 2020 16:28:36 -0600 Subject: [PATCH 4/4] Update composer.json Updating license to MIT --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 3b0003c..681d3f6 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "bmcclure/drupal-library-mapping", "description": "A helper for installing library assets for Drupal.", "type": "composer-plugin", - "license": "GPL-2.0+", + "license": "MIT", "require": { "php": ">=5.5", "composer-plugin-api": "^1.0 || ^2.0"