Skip to content

Commit

Permalink
Merge pull request #233 from humanmade/backport-231-to-v4-branch
Browse files Browse the repository at this point in the history
[Backport v4-branch] Add Composer v2 support
  • Loading branch information
roborourke authored Oct 29, 2020
2 parents 37b538d + 6f963f1 commit acbadb1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
],
"require": {
"php": ">=7.1",
"composer-plugin-api": "^1.1"
"composer-plugin-api": "^1.1 || ^2.0"
},
"extra": {
"class": "Altis\\Local_Server\\Composer\\Plugin",
Expand Down
12 changes: 12 additions & 0 deletions inc/composer/class-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,16 @@ public function getCapabilities() {
'Composer\Plugin\Capability\CommandProvider' => __NAMESPACE__ . '\\Command_Provider',
];
}

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

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

0 comments on commit acbadb1

Please sign in to comment.