Completed
Pull Request — develop (#512)
by Bastian
128:48 queued 63:36
created

GravitonProxyExtensionBundle   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
lcom 0
cbo 3
dl 0
loc 25
rs 10
c 1
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
     * {@inheritDoc}
35
     *
36
     * @param ContainerBuilder $container
37
     *
38
     * @return void
39
     */
40
    public function build(ContainerBuilder $container)
41
    {
42
        $container->addCompilerPass(new ApiDefinitionLoaderPass());
43
    }
44
}
45