Skip to content

Commit

Permalink
Merge pull request #43 from Axent96/Axent96-composer-2
Browse files Browse the repository at this point in the history
Axent96 update for composer 2.0
  • Loading branch information
ksangers authored Nov 17, 2020
2 parents 0bdd57b + 5320fc2 commit 86d8f72
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"php": "^7.1",
"ext-SPL": "^7.1",
"ext-json": "*",
"composer-plugin-api": "^1.1",
"composer-plugin-api": "^1.1 | ^2.0",
"composer/composer": "^1.6",
"nikic/php-parser": "^3.0 | ^4.0",
"roave/better-reflection": "^2.0 | ^3.1",
Expand Down
28 changes: 28 additions & 0 deletions src/Composer/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,32 @@ public function activate(Composer $composer, IOInterface $io): void
{
// There is nothing explicit that needs to happen.
}

/**
* Remove any hooks from Composer
*
* This will be called when a plugin is deactivated before being
* uninstalled, but also before it gets upgraded to a new version
* so the old one can be deactivated and the new one activated.
*
* @param Composer $composer
* @param IOInterface $io
*/
public function deactivate(Composer $composer, IOInterface $io): void
{
// There is nothing explicit that needs to happen.
}

/**
* Prepare the plugin to be uninstalled
*
* This will be called after deactivate.
*
* @param Composer $composer
* @param IOInterface $io
*/
public function uninstall(Composer $composer, IOInterface $io): void
{
// There is nothing explicit that needs to happen.
}
}

0 comments on commit 86d8f72

Please sign in to comment.