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

ArkiRequestIdIntegrationBundle   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 1
dl 0
loc 33
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getContainerExtension() 0 6 1
A registerCommands() 0 4 1
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