Skip to content

Commit af4d50b

Browse files
Fixes #10: adds support for composer 2.x. (#11)
1 parent 59ff99a commit af4d50b

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

composer.json

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

src/Composer/Plugin.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,4 +152,16 @@ protected function isDrupalPackage($package)
152152
}
153153
return false;
154154
}
155+
156+
/**
157+
* {@inheritDoc}
158+
*/
159+
public function deactivate(Composer $composer, IOInterface $io) {
160+
}
161+
162+
/**
163+
* {@inheritDoc}
164+
*/
165+
public function uninstall(Composer $composer, IOInterface $io) {
166+
}
155167
}

0 commit comments

Comments
 (0)