Test Failed
Pull Request — master (#11)
by Pavel
08:20
created

BankiruJsonRpcServerBundle::build()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 1
1
<?php
2
3
namespace Bankiru\Api\JsonRpc;
4
5
use Bankiru\Api\JsonRpc\Adapters\JMS\Compiler\RelationHandlerPass;
6
use Bankiru\Api\JsonRpc\DependencyInjection\BankiruJsonRpcServerExtension;
7
use Bankiru\Api\JsonRpc\DependencyInjection\Compiler\SymfonyAdapterConfigurationPass;
8
use Symfony\Component\DependencyInjection\ContainerBuilder;
9
use Symfony\Component\HttpKernel\Bundle\Bundle;
10
11
final class BankiruJsonRpcServerBundle extends Bundle
12
{
13
    const JSONRPC_VERSION = '2.0';
14
15
    public function build(ContainerBuilder $container)
16
    {
17
        parent::build($container);
18
        $container->addCompilerPass(new SymfonyAdapterConfigurationPass());
19
        $container->addCompilerPass(new RelationHandlerPass());
20
    }
21
22
    public function getContainerExtension()
23
    {
24
        return new BankiruJsonRpcServerExtension();
25
    }
26
}
27