Skip to content

Commit

Permalink
Merge pull request #14 from nanasess/use-composer2
Browse files Browse the repository at this point in the history
Composer 2.0 support
  • Loading branch information
okazy authored Oct 7, 2020
2 parents 6185cd4 + c63f016 commit 73b546f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
10 changes: 7 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ec-cube/plugin-installer",
"version": "0.0.8",
"version": "2.0.x-dev",
"type": "composer-plugin",
"description": "EC-CUBE plugin installer.",
"license": "MIT",
Expand All @@ -10,9 +10,13 @@
}
},
"extra": {
"class": "Eccube\\Composer\\EccubePluginInstallerPlugin"
"class": "Eccube\\Composer\\EccubePluginInstallerPlugin",
"branch-alias": {
"dev-master": "2.0-dev"
}
}
},
"require": {
"composer-plugin-api": "^1.0"
"composer-plugin-api": "^1.0 || ^2.0"
}
}
10 changes: 9 additions & 1 deletion src/Eccube/Composer/EccubePluginInstallerPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,12 @@ public function activate(Composer $composer, IOInterface $io)
$installer = new PluginInstaller($io, $composer, self::TYPE);
$composer->getInstallationManager()->addInstaller($installer);
}
}
public function deactivate(Composer $composer, IOInterface $io)
{
$installer = new PluginInstaller($io, $composer, self::TYPE);
$composer->getInstallationManager()->addInstaller($installer);
}
public function uninstall(Composer $composer, IOInterface $io)
{
}
}

0 comments on commit 73b546f

Please sign in to comment.