CoreExtension   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 20
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A initialize() 0 6 1
A getName() 0 4 1
1
<?php
2
3
namespace Openl10n\Cli\ServiceContainer\Extension;
4
5
use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
6
use Symfony\Component\DependencyInjection\ContainerBuilder;
7
use Symfony\Component\DependencyInjection\Reference;
8
9
class CoreExtension implements Extension
10
{
11
    /**
12
     * {@inheritdoc}
13
     */
14
    public function initialize(ContainerBuilder $container)
15
    {
16
        $container
17
            ->register('configuration.dumper', 'Openl10n\Cli\ServiceContainer\Configuration\ConfigurationDumper')
18
        ;
19
    }
20
21
    /**
22
     * {@inheritdoc}
23
     */
24
    public function getName()
25
    {
26
        return 'core';
27
    }
28
}
29