From 4cee65e919e93d54ed1ac7488fbdd7750bd821ec Mon Sep 17 00:00:00 2001 From: Robert O'Rourke Date: Wed, 28 Oct 2020 13:55:34 +0000 Subject: [PATCH] Add Composer v2 support --- composer.json | 2 +- inc/composer/class-plugin.php | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index d91a6e1..22014df 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ "require": { "php": ">=7.1", "aws/aws-sdk-php": "^3.150.0", - "composer-plugin-api": "^1.0", + "composer-plugin-api": "^1.1 || ^2.0", "composer/installers": "^1.4" }, "autoload": { diff --git a/inc/composer/class-plugin.php b/inc/composer/class-plugin.php index 1d8e2f7..d8d5a92 100644 --- a/inc/composer/class-plugin.php +++ b/inc/composer/class-plugin.php @@ -54,4 +54,16 @@ public function init() { $installer = new Installer( $this->io, $this->composer ); $this->composer->getInstallationManager()->addInstaller( $installer ); } + + /** + * {@inheritDoc} + */ + public function deactivate( Composer $composer, IOInterface $io ) { + } + + /** + * {@inheritDoc} + */ + public function uninstall( Composer $composer, IOInterface $io ) { + } }