This repository was archived by the owner on Mar 17, 2023. It is now read-only.
forked from elcweb/KeyValueStoreBundle
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathAppKernel.php
More file actions
43 lines (37 loc) · 1.03 KB
/
AppKernel.php
File metadata and controls
43 lines (37 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
// Symfony
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
new Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle(),
new JMS\SerializerBundle\JMSSerializerBundle(),
new Elcweb\DoctrineEncryptBundle\ElcwebDoctrineEncryptBundle(),
new Elcweb\KeyValueStoreBundle\ElcwebKeyValueStoreBundle(),
);
return $bundles;
}
public function registerContainerConfiguration(LoaderInterface $loader)
{
$loader->load(__DIR__.'/config.yml');
}
/**
* @return string
*/
public function getCacheDir()
{
return __DIR__.'/cache';
}
/**
* @return string
*/
public function getLogDir()
{
return __DIR__.'/logs';
}
}