AppKernel::getCacheDir()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
use Symfony\Component\HttpKernel\Kernel;
4
use Symfony\Component\Config\Loader\LoaderInterface;
5
6
class AppKernel extends Kernel
7
{
8
    public function registerBundles()
9
    {
10
        return array(
11
            new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
12
            // register the other bundles your tests depend on
13
            new Seblegall\ApiValidatorBundle\ApiValidatorBundle(),
14
            new \Seblegall\ApiValidatorBundle\Tests\Fixtures\Bundles\ExampleBundle\ExampleBundle(),
15
        );
16
    }
17
18
    public function registerContainerConfiguration(LoaderInterface $loader)
19
    {
20
        $loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.yml');
21
    }
22
23
    /**
24
     * @return string
25
     */
26
    public function getCacheDir()
27
    {
28
        return sys_get_temp_dir().'/ApiValidatorBundle/cache';
29
    }
30
31
    /**
32
     * @return string
33
     */
34
    public function getLogDir()
35
    {
36
        return sys_get_temp_dir().'/ApiValidatorBundle/logs';
37
    }
38
}
39