GravitonJsonSchemaBundle   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 18
ccs 0
cts 8
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 9 1
1
<?php
2
/**
3
 * GravitonJsonSchemaBundle class file
4
 */
5
6
namespace Graviton\JsonSchemaBundle;
7
8
use Symfony\Component\DependencyInjection\ContainerBuilder;
9
use Symfony\Component\HttpKernel\Bundle\Bundle;
10
11
/**
12
 * JSON schema bundle
13
 *
14
 * @author   List of contributors <https://github.com/libgraviton/graviton/graphs/contributors>
15
 * @license  https://opensource.org/licenses/MIT MIT License
16
 * @link     http://swisscom.ch
17
 */
18
class GravitonJsonSchemaBundle extends Bundle
19
{
20
    /**
21
     * Builds the bundle.
22
     *
23
     * @param ContainerBuilder $container Container builder
24
     * @return void
25
     */
26
    public function build(ContainerBuilder $container)
27
    {
28
        parent::build($container);
29
30
        $container->setParameter(
31
            'graviton.jsonschema.schema.uri',
32
            'file://'.__DIR__.'/Resources/schema/loadconfig/v1.0/schema.json'
33
        );
34
    }
35
}
36