Completed
Push — master ( 3e963f...fbd0cf )
by Yann
02:04
created

YokaiSecurityTokenTestKernel   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 5

Importance

Changes 0
Metric Value
wmc 5
lcom 1
cbo 5
dl 0
loc 31
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A registerBundles() 0 8 1
A registerContainerConfiguration() 0 4 1
A getRootDir() 0 4 1
A getCacheDir() 0 4 1
A getLogDir() 0 4 1
1
<?php
2
3
use Symfony\Component\Config\Loader\LoaderInterface;
4
use Symfony\Component\HttpKernel\Kernel;
5
6
/**
7
 * @author Yann Eugoné <[email protected]>
8
 */
9
class YokaiSecurityTokenTestKernel extends Kernel
10
{
11
    public function registerBundles()
12
    {
13
        return [
14
            new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
15
            new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
16
            new Yokai\SecurityTokenBundle\YokaiSecurityTokenBundle(),
17
        ];
18
    }
19
20
    public function registerContainerConfiguration(LoaderInterface $loader)
21
    {
22
        $loader->load(__DIR__.'/config.yml');
23
    }
24
25
    public function getRootDir()
26
    {
27
        return __DIR__;
28
    }
29
30
    public function getCacheDir()
31
    {
32
        return sys_get_temp_dir().'/'.Kernel::VERSION.'/cache/'.$this->environment;
33
    }
34
35
    public function getLogDir()
36
    {
37
        return sys_get_temp_dir().'/'.Kernel::VERSION.'/logs';
38
    }
39
}
40