Skip to content

Commit eff6da9

Browse files
Daniel Johnsonossobuffo
Daniel Johnson
andauthored
Add Composer 2 support (#25)
Co-authored-by: Daniel Johnson <[email protected]>
1 parent a8cf84e commit eff6da9

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"class": "Drupal\\Console\\Composer\\Plugin\\Extender"
1414
},
1515
"require": {
16-
"composer-plugin-api": "^1.0",
16+
"composer-plugin-api": "^1.0 || ^2.0",
1717
"composer/installers": "^1.2",
1818
"symfony/yaml": "~3.0|^4.4",
1919
"symfony/finder": "~3.0|^4.4"

src/Extender.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,4 +160,20 @@ protected function removeCacheFiles($directory)
160160
$this->io->write('<info>Cache file can not be deleted</info>');
161161
}
162162
}
163+
164+
/**
165+
* {@inheritdoc}
166+
*/
167+
public function deactivate(Composer $composer, IOInterface $io)
168+
{
169+
// Nothing to deactivate.
170+
}
171+
172+
/**
173+
* {@inheritdoc}
174+
*/
175+
public function uninstall(Composer $composer, IOInterface $io)
176+
{
177+
// Nothing to uninstall.
178+
}
163179
}

0 commit comments

Comments
 (0)