GravitonJsonSchemaBundle::build()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 9
ccs 0
cts 8
cp 0
crap 2
rs 9.9666
c 0
b 0
f 0
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