Skip to content

Commit 46cb272

Browse files
authored
Add support for Composer2
1 parent cdec40d commit 46cb272

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"license": "MIT",
1414
"require": {
1515
"php": "^5.6 || ^7.0 || ^8.0",
16-
"composer-plugin-api": "^1.0"
16+
"composer-plugin-api": "^1.0 || ^2.0"
1717
},
1818
"require-dev": {
1919
"composer/composer": "^1.0 || ^2.0",

src/Plugin.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,18 @@ public function getCapabilities()
2525
'Composer\Plugin\Capability\CommandProvider' => 'Bamarni\Composer\Bin\CommandProvider',
2626
];
2727
}
28+
29+
/**
30+
* {@inheritDoc}
31+
*/
32+
public function deactivate(Composer $composer, IOInterface $io)
33+
{
34+
}
35+
36+
/**
37+
* {@inheritDoc}
38+
*/
39+
public function uninstall(Composer $composer, IOInterface $io)
40+
{
41+
}
2842
}

0 commit comments

Comments
 (0)