diff --git a/composer.json b/composer.json index 8de34b3c..ce434347 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ "require": { "php": ">=5.6.0", "ext-json": "*", - "composer-plugin-api": "^1.0", + "composer-plugin-api": "^1.0 || ^2.0", "cweagans/composer-configurable-plugin": "^1.0" }, "require-dev": { diff --git a/src/Plugin/Patches.php b/src/Plugin/Patches.php index 40a43e07..20ff0b41 100644 --- a/src/Plugin/Patches.php +++ b/src/Plugin/Patches.php @@ -511,4 +511,18 @@ protected function executeCommand($cmd) } return ($this->executor->execute($command, $output) === 0); } + + /** + * {@inheritDoc} + */ + public function deactivate(Composer $composer, IOInterface $io) + { + } + + /** + * {@inheritDoc} + */ + public function uninstall(Composer $composer, IOInterface $io) + { + } }