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
|
|
|
|