Completed
Push — feature/update-json-schema-dep ( 21a471...3110e3 )
by Narcotic
03:12
created

GravitonJsonSchemaExtension   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A load() 0 5 1
1
<?php
2
/**
3
 * GravitonJsonSchemaExtension class file
4
 */
5
6
namespace Graviton\JsonSchemaBundle\DependencyInjection;
7
8
use Symfony\Component\Config\FileLocator;
9
use Symfony\Component\DependencyInjection\ContainerBuilder;
10
use Symfony\Component\DependencyInjection\Extension\Extension;
11
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
12
13
/**
14
 * JSON schema extension
15
 *
16
 * @author   List of contributors <https://github.com/libgraviton/graviton/graphs/contributors>
17
 * @license  http://opensource.org/licenses/gpl-license.php GNU Public License
18
 * @link     http://swisscom.ch
19
 */
20
class GravitonJsonSchemaExtension extends Extension
21
{
22
    /**
23
     * Loads a specific configuration.
24
     *
25
     * @param array            $configs   An array of configuration values
26
     * @param ContainerBuilder $container A ContainerBuilder instance
27
     * @return void
28
     */
29
    public function load(array $configs, ContainerBuilder $container)
30
    {
31
        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
32
        $loader->load('services.xml');
33
    }
34
}
35