Completed
Push — master ( 17074f...2158d1 )
by Hong
04:40
created

Plugin::activate()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
dl 0
loc 5
c 1
b 0
f 1
rs 9.4285
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
/**
3
 * Phossa Project
4
 *
5
 * PHP version 5.4
6
 *
7
 * @category  Library
8
 * @package   Phossa2\Composer
9
 * @copyright Copyright (c) 2016 phossa.com
10
 * @license   http://mit-license.org/ MIT License
11
 * @link      http://www.phossa.com/
12
 */
13
/*# declare(strict_types=1); */
14
15
namespace Phossa2\Composer;
16
17
use Composer\Composer;
18
use Composer\IO\IOInterface;
19
use Composer\Plugin\PluginInterface;
20
21
/**
22
 * Plugin
23
 *
24
 * @package Phossa2\package
25
 * @author  Hong Zhang <[email protected]>
26
 * @version 2.0.0
27
 * @since   2.0.0 added
28
 */
29
class Plugin implements PluginInterface
30
{
31
    public function activate(Composer $composer, IOInterface $io)
32
    {
33
        $installer = new Installer($io, $composer);
34
        $composer->getInstallationManager()->addInstaller($installer);
35
    }
36
}
37