RestExtension   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A load() 0 9 1
1
<?php
2
3
declare (strict_types=1);
4
5
namespace Oxidmod\RestBundle\DependencyInjection;
6
7
use Oxidmod\RestBundle\Transformer\TransformerInterface;
8
use Symfony\Component\Config\FileLocator;
9
use Symfony\Component\DependencyInjection\ContainerBuilder;
10
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
11
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
12
13
/**
14
 * Load bundle configuration
15
 */
16
class RestExtension extends Extension
17
{
18
    /**
19
     * {@inheritdoc}
20
     */
21
    public function load(array $configs, ContainerBuilder $container)
22
    {
23
        $loader = new YamlFileLoader(
24
            $container,
25
            new FileLocator(__DIR__ . '/../Resources/config')
26
        );
27
28
        $loader->load('services.yml');
29
    }
30
}
31