Completed
Push — master ( e35344...c8833b )
by Alexandru
21:49
created

getContainerExtension()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
namespace Arki\RequestId\Integrations\Symfony;
4
5
use Arki\RequestId\Integrations\Symfony\DependencyInjection\Extension;
6
use Symfony\Component\Console\Application;
7
use Symfony\Component\HttpKernel\Bundle\Bundle;
8
9
final class ArkiRequestIdIntegrationBundle extends Bundle
10
{
11
    /**
12
     * @var string
13
     */
14
    private $alias;
15
16
    /**
17
     * @param string $alias
18
     */
19
    public function __construct($alias = 'arki_request_id')
20
    {
21
        $this->alias = $alias;
22
    }
23
24
    /**
25
     * @return \Symfony\Component\DependencyInjection\Extension\ExtensionInterface
26
     */
27
    public function getContainerExtension()
28
    {
29
        $this->extension = new Extension($this->alias);
30
31
        return parent::getContainerExtension();
32
    }
33
34
    /**
35
     * @param Application $application
36
     */
37
    public function registerCommands(Application $application)
38
    {
39
        // this bundle does not register any commands
40
    }
41
}
42