Skip to content

Commit a2c262f

Browse files
committed
Support composer 2
1 parent 06d5288 commit a2c262f

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"license": "GPL-2.0-or-later",
66
"require": {
77
"php": ">=5.4.5",
8-
"composer-plugin-api": "^1.1"
8+
"composer-plugin-api": "^1.1 || ^2"
99
},
1010
"autoload": {
1111
"psr-4": {

src/Plugin.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,16 @@ public function activate(Composer $composer, IOInterface $io) {
3131
$this->installer = new Installer($composer, $io);
3232
}
3333

34+
/**
35+
* {@inheritdoc}
36+
*/
37+
public function deactivate(Composer $composer, IOInterface $io) {}
38+
39+
/**
40+
* {@inheritdoc}
41+
*/
42+
public function uninstall(Composer $composer, IOInterface $io) {}
43+
3444
/**
3545
* {@inheritdoc}
3646
*/

0 commit comments

Comments
 (0)