Completed
Pull Request — develop (#512)
by Bastian
299:43 queued 292:54
created

GravitonProxyExtensionBundle   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 3
dl 0
loc 25
ccs 5
cts 5
cp 1
rs 10

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 8
    public function getBundles()
29
    {
30 8
        return array();
31
    }
32
33
    /**
34
     * {@inheritDoc}
35
     *
36
     * @param ContainerBuilder $container Symfony Service container
37
     *
38
     * @return void
39
     */
40 2
    public function build(ContainerBuilder $container)
41
    {
42 2
        $container->addCompilerPass(new ApiDefinitionLoaderPass());
43 2
    }
44
}
45