Skip to content
This repository has been archived by the owner on Mar 9, 2024. It is now read-only.

Commit

Permalink
Update composer plugin api requirement (#27)
Browse files Browse the repository at this point in the history
* Update composer plugin api requirement

* Add deactivate and uninstall methods
  • Loading branch information
kranack authored Nov 14, 2020
1 parent e2ff208 commit e123550
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}
],
"require": {
"composer-plugin-api": "^1.0"
"composer-plugin-api": "^2.0"
},
"autoload": {
"psr-4": {
Expand Down
18 changes: 17 additions & 1 deletion src/CleanupPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,23 @@ public function activate(Composer $composer, IOInterface $io)
$this->config = $composer->getConfig();
$this->filesystem = new Filesystem();
$this->rules = CleanupRules::getRules();
}
}

/**
* {@inheritDoc}
*/
public function deactivate(Composer $composer, IOInterface $io)
{
//
}

/**
* {@inheritDoc}
*/
public function uninstall(Composer $composer, IOInterface $io)
{
//
}

/**
* {@inheritDoc}
Expand Down

0 comments on commit e123550

Please sign in to comment.