1 | <?php |
||
9 | class YokaiSecurityTokenTestKernel extends Kernel |
||
10 | { |
||
11 | public function registerBundles() |
||
12 | { |
||
13 | return [ |
||
14 | new Symfony\Bundle\FrameworkBundle\FrameworkBundle(), |
||
15 | new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(), |
||
16 | new Yokai\SecurityTokenBundle\YokaiSecurityTokenBundle(), |
||
17 | ]; |
||
18 | } |
||
19 | |||
20 | public function registerContainerConfiguration(LoaderInterface $loader) |
||
21 | { |
||
22 | $loader->load(__DIR__.'/config.yml'); |
||
23 | } |
||
24 | |||
25 | public function getRootDir() |
||
26 | { |
||
27 | return __DIR__; |
||
28 | } |
||
29 | |||
30 | public function getCacheDir() |
||
31 | { |
||
32 | return sys_get_temp_dir().'/'.Kernel::VERSION.'/cache/'.$this->environment; |
||
33 | } |
||
34 | |||
35 | public function getLogDir() |
||
36 | { |
||
37 | return sys_get_temp_dir().'/'.Kernel::VERSION.'/logs'; |
||
38 | } |
||
39 | } |
||
40 |