Skip to content

Commit

Permalink
Add Composer 2 support (#25)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Johnson <djohnson@webfirst.com>
  • Loading branch information
Daniel Johnson and ossobuffo authored Nov 18, 2020
1 parent a8cf84e commit eff6da9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"class": "Drupal\\Console\\Composer\\Plugin\\Extender"
},
"require": {
"composer-plugin-api": "^1.0",
"composer-plugin-api": "^1.0 || ^2.0",
"composer/installers": "^1.2",
"symfony/yaml": "~3.0|^4.4",
"symfony/finder": "~3.0|^4.4"
Expand Down
16 changes: 16 additions & 0 deletions src/Extender.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,4 +160,20 @@ protected function removeCacheFiles($directory)
$this->io->write('<info>Cache file can not be deleted</info>');
}
}

/**
* {@inheritdoc}
*/
public function deactivate(Composer $composer, IOInterface $io)
{
// Nothing to deactivate.
}

/**
* {@inheritdoc}
*/
public function uninstall(Composer $composer, IOInterface $io)
{
// Nothing to uninstall.
}
}

0 comments on commit eff6da9

Please sign in to comment.