Skip to content

Commit 94a1e46

Browse files
committed
Support composer 2
1 parent 06d5288 commit 94a1e46

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

.travis.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,9 @@ before_install:
3131
- phpenv config-rm xdebug.ini
3232

3333
# Update Composer.
34-
- composer self-update --stable
34+
- composer self-update --2
3535
- composer clear-cache
3636

37-
# Install composer parallel install plugin.
38-
- composer global require hirak/prestissimo --no-interaction
39-
4037
# Install PHP Code Sniffer and Drupal Coding standards.
4138
- composer global require drupal/coder --prefer-dist -vvv || exit 1
4239
- phpcs --config-set installed_paths "$COMPOSER_VENDOR_PATH/drupal/coder/coder_sniffer"

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"license": "GPL-2.0-or-later",
66
"require": {
77
"php": ">=5.4.5",
8-
"composer-plugin-api": "^1.1"
8+
"composer-plugin-api": "^1.1 || ^2"
99
},
1010
"autoload": {
1111
"psr-4": {

src/Plugin.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,16 @@ public function activate(Composer $composer, IOInterface $io) {
3131
$this->installer = new Installer($composer, $io);
3232
}
3333

34+
/**
35+
* {@inheritdoc}
36+
*/
37+
public function deactivate(Composer $composer, IOInterface $io) {}
38+
39+
/**
40+
* {@inheritdoc}
41+
*/
42+
public function uninstall(Composer $composer, IOInterface $io) {}
43+
3444
/**
3545
* {@inheritdoc}
3646
*/

0 commit comments

Comments
 (0)