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

YokaiSecurityTokenTestKernel::getCacheDir()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
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