Completed
Push — feature/EVO-7964_fundInfo-exte... ( 9219e4...25799b )
by Bastian
252:34 queued 245:35
created

GravitonProxyBundle::build()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 4
cts 4
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
crap 1
1
<?php
2
/**
3
 * Provide a Proxy for third party APIs.
4
 */
5
6
namespace Graviton\ProxyBundle;
7
8
use Graviton\BundleBundle\GravitonBundleInterface;
9
use Graviton\ProxyBundle\DependencyInjection\Compiler\ApiDefinitionLoaderPass;
10
use Graviton\ProxyBundle\DependencyInjection\Compiler\TransformerPass;
11
use Symfony\Component\DependencyInjection\ContainerBuilder;
12
use Symfony\Component\HttpKernel\Bundle\Bundle;
13
14
/**
15
 * GravitonProxyBundle
16
 *
17
 * @author  List of contributors <https://github.com/libgraviton/graviton/graphs/contributors>
18
 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
19
 * @link    http://swisscom.ch
20
 */
21
class GravitonProxyBundle extends Bundle implements GravitonBundleInterface
22
{
23
24
    /**
25
     * {@inheritDoc}
26
     *
27
     * @return \Symfony\Component\HttpKernel\Bundle\Bundle[]
28
     */
29 8
    public function getBundles()
30
    {
31 8
        return array();
32
    }
33
34
    /**
35
     * {@inheritDoc}
36
     *
37
     * @param ContainerBuilder $container Symfony Service container
38
     *
39
     * @return void
40
     */
41 2
    public function build(ContainerBuilder $container)
42
    {
43 2
        $container->addCompilerPass(new TransformerPass());
44 2
        $container->addCompilerPass(new ApiDefinitionLoaderPass());
45 2
    }
46
}
47