Completed
Push — feature/update-json-schema-dep ( f753ff...de5535 )
by Narcotic
02:40
created

GravitonJsonSchemaBundle::build()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 9
ccs 0
cts 8
cp 0
rs 9.6666
nc 1
cc 1
eloc 5
nop 1
crap 2
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  http://opensource.org/licenses/gpl-license.php GNU Public 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