AppKernel   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 9
Metric Value
wmc 4
lcom 0
cbo 9
dl 0
loc 37
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A registerContainerConfiguration() 0 4 1
A getCacheDir() 0 4 1
A getLogDir() 0 4 1
A registerBundles() 0 13 1
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
            new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
13
	    new Tarioch\PhealBundle\TariochPhealBundle(),
14
	    new Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle(),
15
	    new Liip\FunctionalTestBundle\LiipFunctionalTestBundle(),
16
	    new Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle(),
17
18
            new Tarioch\EveapiFetcherBundle\TariochEveapiFetcherBundle(),
19
        );
20
    }
21
22
    public function registerContainerConfiguration(LoaderInterface $loader)
23
    {
24
        $loader->load(__DIR__.'/config/config.yml');
25
    }
26
27
    /**
28
     * @return string
29
     */
30
    public function getCacheDir()
31
    {
32
        return sys_get_temp_dir().'/TariochEveapiFetcherBundle/cache';
33
    }
34
35
    /**
36
     * @return string
37
     */
38
    public function getLogDir()
39
    {
40
        return sys_get_temp_dir().'/TariochEveapiFetcherBundle/logs';
41
    }
42
}
43