Skip to content

Commit

Permalink
Update to support composer v2.0 interface. (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
amanto authored Jun 25, 2020
1 parent 17d155d commit 4ccfacc
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
}
],
"require": {
"composer-plugin-api": "^1.0"
"composer-plugin-api": "^1.0 || ^2.0"
},
"autoload": {
"psr-4": {
Expand Down
20 changes: 19 additions & 1 deletion src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,25 @@ public function activate(Composer $composer, IOInterface $io)
$this->generator = new AutoloadGenerator($composer->getEventDispatcher(), $io);
}

/**
/**
* @param Composer $composer
* @param IOInterface $io
*/
public function deactivate(Composer $composer, IOInterface $io)
{

}

/**
* @param Composer $composer
* @param IOInterface $io
*/
public function uninstall(Composer $composer, IOInterface $io)
{

}

/**
* @return array
*/
public static function getSubscribedEvents()
Expand Down

0 comments on commit 4ccfacc

Please sign in to comment.