Completed
Push — master ( 2aa80c...f80030 )
by Alexandru
08:43
created

ArkiRequestIdIntegrationBundle   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 2
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
/*
4
 * This file is part of the Arkitekto\RequestId library.
5
 *
6
 * (c) Alexandru Furculita <[email protected]>
7
 *
8
 * This source file is subject to the MIT license that is bundled
9
 * with this source code in the file LICENSE.md.
10
 */
11
12
namespace Arki\RequestId\Integrations\Symfony;
13
14
use Arki\RequestId\Integrations\Symfony\DependencyInjection\Extension;
15
use Symfony\Component\Console\Application;
16
use Symfony\Component\HttpKernel\Bundle\Bundle;
17
18
final class ArkiRequestIdIntegrationBundle extends Bundle
19
{
20
    /**
21
     * @var string
22
     */
23
    private $alias;
24
25
    /**
26
     * @param string $alias
27
     */
28
    public function __construct($alias = 'arki_request_id')
29
    {
30
        $this->alias = $alias;
31
    }
32
33
    /**
34
     * @return \Symfony\Component\DependencyInjection\Extension\ExtensionInterface
35
     */
36
    public function getContainerExtension()
37
    {
38
        $this->extension = new Extension($this->alias);
39
40
        return parent::getContainerExtension();
41
    }
42
43
    /**
44
     * @param Application $application
45
     */
46
    public function registerCommands(Application $application)
47
    {
48
        // this bundle does not register any commands
49
    }
50
}
51