File: Plugin1.php

package info (click to toggle)
composer 2.9.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,528 kB
  • sloc: php: 83,030; makefile: 59; xml: 39
file content (28 lines) | stat: -rw-r--r-- 604 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php

namespace Installer;

use Composer\Composer;
use Composer\IO\IOInterface;
use Composer\Plugin\PluginInterface;

class Plugin1 implements PluginInterface
{
    public $name = 'plugin1';
    public $version = 'installer-v4';

    public function activate(Composer $composer, IOInterface $io)
    {
        $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');
    }
}