Skip to content

Commit

Permalink
supports Composer 2
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Oct 27, 2020
1 parent 75a51a6 commit 7cb3d60
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
],
"require": {
"php": ">=7.1",
"composer-plugin-api": "^1.0",
"composer/composer": "^1.10"
"composer-plugin-api": "^1.0 || ^2.0",
"composer/composer": "^1.10 || ^2.0"
},
"require-dev": {
"nette/tester": "^2.2",
Expand Down
10 changes: 10 additions & 0 deletions src/ComposerCleaner/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ public function activate(Composer $composer, IOInterface $io)
}


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


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


public static function getSubscribedEvents()
{
return [
Expand Down

0 comments on commit 7cb3d60

Please sign in to comment.