ThemeInstallerPlugin::activate()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 2
1
<?php
2
/*
3
 * This file is part of the phpdish/theme-installer package.
4
 *
5
 * (c) Slince <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace PHPDish\ThemeInstaller;
12
13
use Composer\Composer;
14
use Composer\IO\IOInterface;
15
use Composer\Plugin\PluginInterface;
16
17
class ThemeInstallerPlugin implements PluginInterface
18
{
19
    /**
20
     * {@inheritdoc}
21
     */
22
    public function activate(Composer $composer, IOInterface $io)
23
    {
24
        $composer->getInstallationManager()->addInstaller(new ThemeInstaller($io, $composer));
25
    }
26
}