28 lines
550 B
PHP
28 lines
550 B
PHP
<?php
|
|
|
|
namespace Installer;
|
|
|
|
use Composer\Composer;
|
|
use Composer\IO\IOInterface;
|
|
use Composer\Plugin\PluginInterface;
|
|
|
|
class Plugin2 implements PluginInterface
|
|
{
|
|
public $version = 'installer-v2';
|
|
|
|
public function activate(Composer $composer, IOInterface $io)
|
|
{
|
|
$io->write('activate v2');
|
|
}
|
|
|
|
public function deactivate(Composer $composer, IOInterface $io)
|
|
{
|
|
$io->write('deactivate v2');
|
|
}
|
|
|
|
public function uninstall(Composer $composer, IOInterface $io)
|
|
{
|
|
$io->write('uninstall v2');
|
|
}
|
|
}
|