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

Extension   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 4
lcom 1
cbo 1
dl 0
loc 42
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A loadInternal() 0 4 1
A getConfiguration() 0 4 1
A getAlias() 0 4 1
1
<?php // @codingStandardsIgnoreFile
2
3
namespace Arki\RequestId\Integrations\Symfony\DependencyInjection;
4
5
use Symfony\Component\DependencyInjection\ContainerBuilder;
6
use Symfony\Component\HttpKernel\DependencyInjection\ConfigurableExtension;
7
8
final class Extension extends ConfigurableExtension
9
{
10
    /**
11
     * @var string
12
     */
13
    private $alias;
14
15
    /**
16
     * @param string $alias
17
     */
18
    public function __construct($alias)
19
    {
20
        $this->alias = $alias;
21
    }
22
23
    /**
24
     * Configures the passed container according to the merged configuration.
25
     *
26
     * @param array            $mergedConfig
27
     * @param ContainerBuilder $container
28
     */
29
    protected function loadInternal(array $mergedConfig, ContainerBuilder $container)
30
    {
31
        // TODO: Implement loadInternal() method.
32
    }
33
34
    /**
35
     * {@inheritdoc}
36
     */
37
    public function getConfiguration(array $config, ContainerBuilder $container)
38
    {
39
        return new Configuration($this->alias);
40
    }
41
42
    /**
43
     * {@inheritdoc}
44
     */
45
    public function getAlias()
46
    {
47
        return $this->alias;
48
    }
49
}
50
51