ElaoFormSimpleObjectMapperBundle::build()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * This file is part of the "elao/form-simple-object-mapper" package.
5
 *
6
 * Copyright (C) Elao
7
 *
8
 * @author Elao <[email protected]>
9
 */
10
11
namespace Elao\FormSimpleObjectMapper\Bridge\Symfony\Bundle;
12
13
use Symfony\Component\Config\FileLocator;
14
use Symfony\Component\DependencyInjection\ContainerBuilder;
15
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
16
use Symfony\Component\HttpKernel\Bundle\Bundle;
17
18
class ElaoFormSimpleObjectMapperBundle extends Bundle
19
{
20
    public function build(ContainerBuilder $container)
21
    {
22
        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/Resources/config'));
23
        $loader->load('services.xml');
24
    }
25
}
26