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

ModulePlugin::activate()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
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