Completed
Push — master ( 324ca9...bf4d68 )
by Sullivan
8s
created

NexySlackExtension   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A load() 0 9 1
1
<?php
2
3
namespace Nexy\SlackBundle\DependencyInjection;
4
5
use Symfony\Component\DependencyInjection\ContainerBuilder;
6
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
7
8
class NexySlackExtension extends Extension
9
{
10
    /**
11
     * {@inheritdoc}
12
     */
13
    public function load(array $configs, ContainerBuilder $container)
14
    {
15
        $configuration = new Configuration();
16
        $config = $this->processConfiguration($configuration, $configs);
17
18
        $container->setParameter('nexy_slack.endpoint', $config['endpoint']);
19
        unset($config['endpoint']);
20
        $container->setParameter('nexy_slack.config', $config);
21
    }
22
}
23