Skip to content

Commit 8a99229

Browse files
committed
修改composer-plugin-api版本,兼容composer2.0
1 parent 969277e commit 8a99229

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "php-cs-fixer plugin",
55
"type": "composer-plugin",
66
"require": {
7-
"composer-plugin-api": "^1.0",
7+
"composer-plugin-api": "^2.0",
88
"friendsofphp/php-cs-fixer": "^2.15"
99
},
1010
"require-dev": {

src/Plugin/Plugin.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ public function activate(Composer $composer, IOInterface $io) {
4040
$this->io = $io;
4141
}
4242

43+
public function deactivate(Composer $composer, IOInterface $io) {
44+
}
45+
46+
public function uninstall(Composer $composer, IOInterface $io) {
47+
}
48+
4349
/**
4450
* @return array
4551
*/

0 commit comments

Comments
 (0)