Skip to content

Commit

Permalink
API Add support for Composer 2 (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxime Rainville authored Oct 26, 2020
1 parent 88cd7ed commit 374f223
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
"lint-clean": "phpcbf src/"
},
"require": {
"composer-plugin-api": "^1.1"
"composer-plugin-api": "^1.1|^2"
},
"require-dev": {
"composer/composer": "^1.2"
"composer/composer": "^1.2|2"
},
"minimum-stability": "dev"
}
11 changes: 11 additions & 0 deletions src/RecipePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,4 +133,15 @@ public function getCapabilities()
CommandProvider::class => RecipeCommandProvider::class
];
}


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

}

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

}
}

0 comments on commit 374f223

Please sign in to comment.