2013-08-13 13:55:52 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Installer;
|
|
|
|
|
|
|
|
use Composer\Composer;
|
2013-08-15 14:58:48 +00:00
|
|
|
use Composer\IO\IOInterface;
|
2013-08-13 13:55:52 +00:00
|
|
|
use Composer\Plugin\PluginInterface;
|
|
|
|
|
|
|
|
class Plugin1 implements PluginInterface
|
|
|
|
{
|
|
|
|
public $name = 'plugin1';
|
|
|
|
public $version = 'installer-v4';
|
|
|
|
|
2013-08-15 14:58:48 +00:00
|
|
|
public function activate(Composer $composer, IOInterface $io)
|
2013-08-13 13:55:52 +00:00
|
|
|
{
|
2019-02-18 17:14:46 +00:00
|
|
|
$io->write('activate v4-plugin1');
|
|
|
|
}
|
|
|
|
|
|
|
|
public function deactivate(Composer $composer, IOInterface $io)
|
|
|
|
{
|
|
|
|
$io->write('deactivate v4-plugin1');
|
|
|
|
}
|
|
|
|
|
|
|
|
public function uninstall(Composer $composer, IOInterface $io)
|
|
|
|
{
|
|
|
|
$io->write('uninstall v4-plugin1');
|
2013-08-13 13:55:52 +00:00
|
|
|
}
|
|
|
|
}
|