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

GravitonProxyBundle   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 4
dl 0
loc 26
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getBundles() 0 4 1
A build() 0 5 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