Completed
Push — master ( 742ab5...82b4e6 )
by Alex
01:39
created

PsyshBundle::registerCommands()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 3
ccs 0
cts 0
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 1
crap 2
1
<?php
2
declare(strict_types=1);
3
4
namespace AlexMasterov\PsyshBundle;
5
6
use AlexMasterov\PsyshBundle\DependencyInjection\{
7
    Compiler\AddCommandPass,
8
    Compiler\AddTabCompletionMatcherPass,
9
    Compiler\SetVariablePass,
10
    Extension
11
};
12
use Symfony\Component\Console\Application;
13
use Symfony\Component\DependencyInjection\ContainerBuilder;
14
use Symfony\Component\HttpKernel\Bundle\Bundle;
15
16
class PsyshBundle extends Bundle
17
{
18
    /**
19
     * @inheritDoc
20
     */
21 1
    public function build(ContainerBuilder $container)
22
    {
23 1
        parent::build($container);
24
25 1
        $container->addCompilerPass(new AddCommandPass());
26 1
        $container->addCompilerPass(new AddTabCompletionMatcherPass());
27 1
        $container->addCompilerPass(new SetVariablePass());
28 1
    }
29
30
    /**
31
     * @inheritDoc
32
     */
33 1
    public function getContainerExtension()
34
    {
35 1
        return $this->extension
36 1
            ?? $this->extension = new Extension();
37
    }
38
39
    /**
40
     * @inheritDoc
41
     * @codeCoverageIgnore
42
     */
43
    public function registerCommands(Application $application)
44
    {
45
    }
46
}
47