InstallPlugin   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 12
ccs 0
cts 7
cp 0
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A configure() 0 5 1
A boot() 0 2 1
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
}