AfsyChatExtension::load()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 8
rs 10
cc 1
nc 1
nop 2
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