Completed
Push — master ( 055f1b...f72a4b )
by Pavel
52s
created

Kernel   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 1 Features 0
Metric Value
wmc 4
c 1
b 1
f 0
lcom 0
cbo 4
dl 0
loc 27
ccs 11
cts 11
cp 1
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A registerBundles() 0 7 1
A registerContainerConfiguration() 0 4 1
A getCacheDir() 0 4 1
A getLogDir() 0 4 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: batanov.pavel
5
 * Date: 16.05.2016
6
 * Time: 10:38
7
 */
8
9
namespace Bankiru\Api\Rpc\Tests\Fixtures;
10
11
use Bankiru\Api\Rpc\RpcBundle;
12
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
13
use Symfony\Component\Config\Loader\LoaderInterface;
14
use Symfony\Component\HttpKernel\Kernel as BaseKernel;
15
16
class Kernel extends BaseKernel
17
{
18
    /** {@inheritdoc} */
19 10
    public function registerBundles()
20
    {
21
        return [
22 10
            new FrameworkBundle(),
23 10
            new RpcBundle(),
24 10
        ];
25
    }
26
27
    /** {@inheritdoc} */
28 1
    public function registerContainerConfiguration(LoaderInterface $loader)
29
    {
30 1
        $loader->load(__DIR__ . '/config/test.yml');
31 1
    }
32
33 10
    public function getCacheDir()
34
    {
35 10
        return __DIR__ . '/../../../../../../build/cache/';
36
    }
37
38 1
    public function getLogDir()
39
    {
40 1
        return __DIR__ . '/../../../../../../build/log/';
41
    }
42
}
43