2014-10-26 17:47:29 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Installer;
|
|
|
|
|
|
|
|
use Composer\Composer;
|
|
|
|
use Composer\IO\IOInterface;
|
|
|
|
use Composer\Plugin\PluginInterface;
|
2016-04-28 19:37:34 +00:00
|
|
|
use Composer\Plugin\Capable;
|
2014-10-26 17:47:29 +00:00
|
|
|
|
2016-04-28 19:37:34 +00:00
|
|
|
class Plugin8 implements PluginInterface, Capable
|
2014-10-26 17:47:29 +00:00
|
|
|
{
|
2016-04-28 19:11:33 +00:00
|
|
|
public $version = 'installer-v8';
|
2014-10-26 17:47:29 +00:00
|
|
|
|
|
|
|
public function activate(Composer $composer, IOInterface $io)
|
|
|
|
{
|
2019-02-18 17:14:46 +00:00
|
|
|
$io->write('activate v8');
|
|
|
|
}
|
|
|
|
|
|
|
|
public function deactivate(Composer $composer, IOInterface $io)
|
|
|
|
{
|
|
|
|
$io->write('deactivate v8');
|
|
|
|
}
|
|
|
|
|
|
|
|
public function uninstall(Composer $composer, IOInterface $io)
|
|
|
|
{
|
|
|
|
$io->write('uninstall v8');
|
2014-10-26 17:47:29 +00:00
|
|
|
}
|
|
|
|
|
2016-04-28 19:37:34 +00:00
|
|
|
public function getCapabilities()
|
2014-10-26 17:47:29 +00:00
|
|
|
{
|
2016-04-28 19:37:34 +00:00
|
|
|
return array(
|
|
|
|
'Composer\Plugin\Capability\CommandProvider' => 'Installer\CommandProvider',
|
|
|
|
);
|
2014-10-26 17:47:29 +00:00
|
|
|
}
|
|
|
|
}
|