Skip to content

Commit

Permalink
Fixes zaporylie#16: Support Composer 2.
Browse files Browse the repository at this point in the history
  • Loading branch information
danepowell committed Apr 22, 2020
1 parent fb231d9 commit 8ccd0b8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}
],
"require": {
"composer-plugin-api": "^1.1"
"composer-plugin-api": "^1.1 || ^2.0"
},
"require-dev": {
"composer/composer": "^1.6",
Expand Down
8 changes: 8 additions & 0 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ public function activate(Composer $composer, IOInterface $io)
$composer->setRepositoryManager($manager);
}

public function deactivate(Composer $composer, IOInterface $io)
{
}

public function uninstall(Composer $composer, IOInterface $io)
{
}

/**
* Negotiates default require constraint and package for given drupal/core.
*
Expand Down

0 comments on commit 8ccd0b8

Please sign in to comment.