CasExtension   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 4
dl 0
loc 12
ccs 4
cts 4
cp 1
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A load() 0 6 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace drupol\CasBundle\DependencyInjection;
6
7
use Symfony\Component\DependencyInjection\ContainerBuilder;
8
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
9
10
/**
11
 * Class CasExtension.
12
 */
13
class CasExtension extends Extension
14
{
15
    /**
16
     * @param array<string> $configs
17
     * @param ContainerBuilder $container
18
     */
19 1
    public function load(array $configs, ContainerBuilder $container): void
20
    {
21 1
        $configuration = new Configuration();
22 1
        $config = $this->processConfiguration($configuration, $configs);
23
24 1
        $container->setParameter('cas', $config);
25 1
    }
26
}
27