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

AppKernel::getCacheDir()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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