Completed
Push — feature/EVO-7964_fundInfo-exte... ( eda009...805323 )
by Bastian
62:49
created

GravitonProxyExtensionBundle   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 3
dl 0
loc 21
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getBundles() 0 4 1
A build() 0 4 1
1
<?php
2
/**
3
 * Provide a Proxy for third party APIs.
4
 */
5
6
namespace Graviton\ProxyExtensionBundle;
7
8
use Graviton\BundleBundle\GravitonBundleInterface;
9
use Graviton\ProxyExtensionBundle\DependencyInjection\Compiler\ApiDefinitionLoaderPass;
10
use Symfony\Component\DependencyInjection\ContainerBuilder;
11
use Symfony\Component\HttpKernel\Bundle\Bundle;
12
13
/**
14
 * GravitonProxyExtensionBundle
15
 *
16
 * @author  List of contributors <https://github.com/libgraviton/graviton/graphs/contributors>
17
 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
18
 * @link    http://swisscom.ch
19
 */
20
class GravitonProxyExtensionBundle extends Bundle implements GravitonBundleInterface
21
{
22
23
    /**
24
     * {@inheritDoc}
25
     *
26
     * @return \Symfony\Component\HttpKernel\Bundle\Bundle[]
27
     */
28
    public function getBundles()
29
    {
30
        return array();
31
    }
32
33
    /**
34
     * @param ContainerBuilder $container
35
     */
36
    public function build(ContainerBuilder $container)
37
    {
38
        $container->addCompilerPass(new ApiDefinitionLoaderPass());
39
    }
40
}
41