Skip to content

Commit

Permalink
Merge pull request #3 from bmcclure/composer-2
Browse files Browse the repository at this point in the history
Composer 2
  • Loading branch information
bmcclure authored Nov 17, 2021
2 parents 1a1da3f + 81bc75c commit e4bae6a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"name": "bmcclure/drupal-library-mapping",
"description": "A helper for installing library assets for Drupal.",
"type": "composer-plugin",
"license": "GPL-2.0+",
"license": "MIT",
"require": {
"php": ">=5.5",
"composer-plugin-api": "^1.0.0"
"composer-plugin-api": "^1.0 || ^2.0"
},
"autoload": {
"psr-4": {
Expand Down
18 changes: 18 additions & 0 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,24 @@ public function activate(Composer $composer, IOInterface $io) {
$this->handler = new Handler($composer, $io);
}

/**
* Deactivation hook.
*
* @param Composer $composer
* @param IOInterface $io
*/
public function deactivate(Composer $composer, IOInterface $io) {
}

/**
* Uninstall hook.
*
* @param Composer $composer
* @param IOInterface $io
*/
public function uninstall(Composer $composer, IOInterface $io) {
}

/**
* @param \Composer\Installer\PackageEvent $event
*/
Expand Down

0 comments on commit e4bae6a

Please sign in to comment.