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

Plugin   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
dl 0
loc 8
c 1
b 0
f 1
wmc 1
lcom 0
cbo 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A activate() 0 5 1
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