Completed
Push — master ( 2bb76e...2f6bf5 )
by Maksim
03:40
created

AppKernel::getCacheDir()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Liip\ImagineBundle\Tests\Functional\app;
4
5
use Symfony\Component\HttpKernel\Kernel;
6
use Symfony\Component\Config\Loader\LoaderInterface;
7
8
class AppKernel extends Kernel
9
{
10
    /**
11
     * @return array
12
     */
13
    public function registerBundles()
14
    {
15
        $bundles = array(
16
            new \Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
17
            new \Liip\ImagineBundle\LiipImagineBundle(),
18
        );
19
20
        return $bundles;
21
    }
22
23
    /**
24
     * @return string
25
     */
26
    public function getCacheDir()
27
    {
28
        return sys_get_temp_dir().'/liip_imagine_test/cache';
29
    }
30
31
    /**
32
     * @return string
33
     */
34
    public function getLogDir()
35
    {
36
        return sys_get_temp_dir().'/liip_imagine_test/cache/logs';
37
    }
38
39
    /**
40
     * @param \Symfony\Component\Config\Loader\LoaderInterface $loader
41
     */
42
    public function registerContainerConfiguration(LoaderInterface $loader)
43
    {
44
        $loader->load(__DIR__.'/config/config.yml');
45
    }
46
}
47