Completed
Push — master ( 29f90c...6ceb07 )
by Sergei
02:28
created

AppKernel   B

Complexity

Total Complexity 4

Size/Duplication

Total Lines 50
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 18

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 4
c 2
b 0
f 0
lcom 0
cbo 18
dl 0
loc 50
rs 7.3333

4 Methods

Rating   Name   Duplication   Size   Complexity  
B registerBundles() 0 26 1
A registerContainerConfiguration() 0 4 1
A getCacheDir() 0 4 1
A getLogDir() 0 4 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 Symfony\Bundle\SecurityBundle\SecurityBundle(),
13
            new Symfony\Bundle\TwigBundle\TwigBundle(),
14
            new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
15
            new Modera\TranslationsBundle\ModeraTranslationsBundle(),
16
            new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
17
18
            new Sli\ExtJsIntegrationBundle\SliExtJsIntegrationBundle(),
19
            new Sli\AuxBundle\SliAuxBundle(),
20
            new Sli\ExpanderBundle\SliExpanderBundle($this),
21
22
            new Modera\FoundationBundle\ModeraFoundationBundle(),
23
            new Modera\MjrIntegrationBundle\ModeraMjrIntegrationBundle(),
24
25
            new Modera\DirectBundle\ModeraDirectBundle(),
26
            new Modera\SecurityBundle\ModeraSecurityBundle(),
27
            new Modera\BackendToolsBundle\ModeraBackendToolsBundle(),
28
29
            new Modera\ServerCrudBundle\ModeraServerCrudBundle(),
30
31
            new Modera\BackendSecurityBundle\ModeraBackendSecurityBundle(),
32
        );
33
    }
34
35
    public function registerContainerConfiguration(LoaderInterface $loader)
36
    {
37
        $loader->load(__DIR__.'/config/config.yml');
38
    }
39
40
    /**
41
     * @return string
42
     */
43
    public function getCacheDir()
44
    {
45
        return sys_get_temp_dir().'/ModeraSecurityBundle/cache';
46
    }
47
48
    /**
49
     * @return string
50
     */
51
    public function getLogDir()
52
    {
53
        return sys_get_temp_dir().'/ModeraSecurityBundle/logs';
54
    }
55
}
56