Skip to content
This repository was archived by the owner on Sep 1, 2023. It is now read-only.

Commit 7da803b

Browse files
committed
support Composer 2.0 (#61)
1 parent 816e33c commit 7da803b

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

ComposerPlugin.php

+8
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,12 @@ public function onPostAutoloadDump(Event $event) {
6565
$args;
6666
$executor->execute($command);
6767
}
68+
69+
/** Does nothing but required by Composer 2.0 */
70+
public function deactivate(Composer $composer, IOInterface $io) {
71+
}
72+
73+
/** Does nothing but required by Composer 2.0 */
74+
public function uninstall(Composer $composer, IOInterface $io) {
75+
}
6876
}

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"bin/hh-autoload.hack"
1010
],
1111
"require": {
12-
"composer-plugin-api": "^1.0",
12+
"composer-plugin-api": "^1.0|^2.0",
1313
"hhvm": "^4.25",
1414
"hhvm/hsl": "^4.0"
1515
},

0 commit comments

Comments
 (0)