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

AppKernel   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 4
c 1
b 0
f 1
lcom 0
cbo 4
dl 0
loc 39
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A registerBundles() 0 9 1
A getCacheDir() 0 4 1
A getLogDir() 0 4 1
A registerContainerConfiguration() 0 4 1
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