InstallPlugin::configure()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 5
ccs 0
cts 4
cp 0
crap 2
rs 10
1
<?php
2
3
4
namespace Deployee\Plugins\Install;
5
6
7
use Deployee\Components\Application\CommandCollection;
8
use Deployee\Components\Container\ContainerInterface;
9
use Deployee\Components\Plugins\PluginInterface;
10
use Deployee\Plugins\Install\Commands\InstallCommand;
11
12
class InstallPlugin implements PluginInterface
13
{
14
    public function boot(ContainerInterface $container)
15
    {
16
17
    }
18
19
    public function configure(ContainerInterface $container)
20
    {
21
        /* @var CommandCollection $commandCollection */
22
        $commandCollection = $container->get(CommandCollection::class);
23
        $commandCollection->addCommand(new InstallCommand());
24
    }
25
}