Skip to content

Commit 92b5928

Browse files
committed
[TASK] Make compatible with Composer 2.0
1 parent ce41501 commit 92b5928

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
},
2222
"require": {
2323
"php": ">=5.3.7",
24-
"composer-plugin-api": "^1.0"
24+
"composer-plugin-api": "^1.0 || ^2.0"
2525
},
2626
"require-dev": {
27-
"composer/composer": "^1.1@dev",
27+
"composer/composer": "^1.1@dev || ^2.0@dev",
2828
"mikey179/vfsstream": "~1.4.0@dev",
2929
"phpunit/phpunit": "^4.8"
3030
},

src/Plugin.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,16 @@ public function activate(Composer $composer, IOInterface $io)
4242
$this->io = $io;
4343
}
4444

45+
public function deactivate(Composer $composer, IOInterface $io)
46+
{
47+
// Nothing to do
48+
}
49+
50+
public function uninstall(Composer $composer, IOInterface $io)
51+
{
52+
// Nothing to do
53+
}
54+
4555
/**
4656
* Returns an array of event names this subscriber wants to listen to.
4757
*

0 commit comments

Comments
 (0)