DeployEnvPlugin   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 16
ccs 0
cts 9
cp 0
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 2 1
A configure() 0 9 1
1
<?php
2
3
4
namespace Deployee\Plugins\DeployEnv;
5
6
7
use Deployee\Components\Container\ContainerInterface;
8
use Deployee\Components\DocBlock\DocBlock;
9
use Deployee\Components\Environment\EnvironmentInterface;
10
use Deployee\Components\Plugins\PluginInterface;
11
use Deployee\Plugins\DeployEnv\Subscriber\FindExecutableDefinitionsSubscriber;
12
use Symfony\Component\EventDispatcher\EventDispatcher;
13
14
class DeployEnvPlugin implements PluginInterface
15
{
16
    public function boot(ContainerInterface $container)
17
    {
18
19
    }
20
21
    public function configure(ContainerInterface $container)
22
    {
23
        $docBlock = new DocBlock();
24
25
        /* @var EnvironmentInterface $env */
26
        $env = $container->get(EnvironmentInterface::class);
27
        /* @var EventDispatcher $eventDispatcher */
28
        $eventDispatcher = $container->get(EventDispatcher::class);
29
        $eventDispatcher->addSubscriber(new FindExecutableDefinitionsSubscriber($docBlock, $env));
30
    }
31
}