Completed
Push — master ( e22522...ee64fa )
by Sergei
13:37
created

AppKernel   C

Complexity

Total Complexity 4

Size/Duplication

Total Lines 51
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 19

Importance

Changes 4
Bugs 0 Features 1
Metric Value
wmc 4
c 4
b 0
f 1
lcom 0
cbo 19
dl 0
loc 51
rs 6.875

4 Methods

Rating   Name   Duplication   Size   Complexity  
B registerBundles() 0 27 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
            new Modera\ActivityLoggerBundle\ModeraActivityLoggerBundle(),
29
30
            new Modera\ServerCrudBundle\ModeraServerCrudBundle(),
31
32
            new Modera\BackendSecurityBundle\ModeraBackendSecurityBundle(),
33
        );
34
    }
35
36
    public function registerContainerConfiguration(LoaderInterface $loader)
37
    {
38
        $loader->load(__DIR__.'/config/config.yml');
39
    }
40
41
    /**
42
     * @return string
43
     */
44
    public function getCacheDir()
45
    {
46
        return sys_get_temp_dir().'/ModeraBackendSecurityBundle/cache';
47
    }
48
49
    /**
50
     * @return string
51
     */
52
    public function getLogDir()
53
    {
54
        return sys_get_temp_dir().'/ModeraBackendSecurityBundle/logs';
55
    }
56
}
57