Completed
Push — master ( d9186d...be21d0 )
by Abdelrahman
01:39 queued 11s
created

ModulePlugin   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A activate() 0 6 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Rinvex\Composer\Plugins;
6
7
use Composer\Composer;
8
use Composer\IO\IOInterface;
9
use Composer\Plugin\PluginInterface;
10
use Rinvex\Composer\Installers\ModuleInstaller;
11
12
class ModulePlugin implements PluginInterface
13
{
14
    /**
15
     * {@inheritdoc}
16
     */
17
    public function activate(Composer $composer, IOInterface $io)
18
    {
19
        $installer = new ModuleInstaller($io, $composer);
20
21
        $composer->getInstallationManager()->addInstaller($installer);
22
    }
23
}
24