Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add method stubs for uninstall/deactivate to support Composer 2 #7

Merged
merged 1 commit into from
Oct 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
{
"name": "sculpin/sculpin-theme-composer-plugin",
"description": "Plugin for theming sculpin sites",
"type": "composer-plugin",
"license": "MIT",
"require": {
"composer-plugin-api": "^1.1"
"composer-plugin-api": "^1.1|^2.0"
},
"require-dev": {
"composer/composer": "*"
},
"autoload": {
"psr-0": {
Expand Down
10 changes: 10 additions & 0 deletions src/Sculpin/Composer/SculpinThemePlugin/SculpinThemePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,4 +167,14 @@ private function removeThemeFiles(PackageInterface $package)

$this->filesystem->remove($themeTarget);
}

public function deactivate(Composer $composer, IOInterface $io)
{
// TODO: Implement deactivate() method.
}

public function uninstall(Composer $composer, IOInterface $io)
{
// TODO: Implement uninstall() method.
}
}