Skip to content

Commit

Permalink
Support Composer 2.0
Browse files Browse the repository at this point in the history
Minimal changes to updated the plugin to support Composer 2.0 which is expected late May/beginning of June.

Changes are based on guidance found in:
* #108
* composer/composer#8726
* https://github.com/composer/composer/blob/master/UPGRADE-2.0.md#for-integrators-and-plugin-authors

Tested by danepowell and myself (Windows 7). Further testing would be very welcome!

Fixes 108
  • Loading branch information
jrfnl committed May 11, 2020
1 parent 7c75210 commit 2cf2a33
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"require": {
"php": ">=5.3",
"composer-plugin-api": "^1.0",
"composer-plugin-api": "^1.0 || ^2.0",
"squizlabs/php_codesniffer": "^2 || ^3 || 4.0.x-dev"
},
"require-dev": {
Expand Down
14 changes: 14 additions & 0 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,20 @@ public function activate(Composer $composer, IOInterface $io)
$this->init();
}

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

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

/**
* Prepares the plugin so it's main functionality can be run.
*
Expand Down

0 comments on commit 2cf2a33

Please sign in to comment.