1 | <?php |
||
9 | class TestAppKernel extends Kernel |
||
10 | { |
||
11 | /** |
||
12 | * @return array |
||
13 | */ |
||
14 | public function registerBundles() |
||
15 | { |
||
16 | return [ |
||
17 | new Symfony\Bundle\FrameworkBundle\FrameworkBundle(), |
||
18 | new Symfony\Bundle\TwigBundle\TwigBundle(), |
||
19 | new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(), |
||
20 | new MewesK\TwigSpreadsheetBundle\MewesKTwigSpreadsheetBundle(), |
||
21 | new MewesK\TwigSpreadsheetBundle\Tests\Fixtures\TestBundle\TestBundle(), |
||
22 | ]; |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * @param LoaderInterface $loader |
||
27 | * |
||
28 | * @throws \Exception |
||
29 | */ |
||
30 | public function registerContainerConfiguration(LoaderInterface $loader) |
||
31 | { |
||
32 | $loader->load($this->getRootDir().'/config/config_'.$this->getEnvironment().'.yml'); |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * @return string |
||
37 | */ |
||
38 | public function getCacheDir() |
||
39 | { |
||
40 | return $this->getRootDir().'/../../tmp/cache'; |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * @return string |
||
45 | */ |
||
46 | public function getLogDir() |
||
47 | { |
||
48 | return $this->getRootDir().'/../../tmp/logs'; |
||
49 | } |
||
50 | } |
||
51 |