AfsyChatExtension   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 4
c 1
b 0
f 0
dl 0
loc 13
rs 10

1 Method

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