1 | <?php |
||
6 | class AppKernel extends Kernel |
||
7 | { |
||
8 | private $projectDir; |
||
|
|||
9 | |||
10 | public function registerBundles() |
||
11 | { |
||
12 | $bundles = [ |
||
13 | new \Symfony\Bundle\FrameworkBundle\FrameworkBundle(), |
||
14 | new \Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(), |
||
15 | new \Symfony\Bundle\TwigBundle\TwigBundle(), |
||
16 | new \Symfony\Bundle\WebServerBundle\WebServerBundle(), |
||
17 | new \Translation\Bundle\TranslationBundle(), |
||
18 | new \AppBundle\AppBundle(), |
||
19 | |||
20 | new \Translation\PlatformAdapter\Loco\Bridge\Symfony\TranslationAdapterLocoBundle(), |
||
21 | new \Translation\PlatformAdapter\Flysystem\Bridge\Symfony\TranslationAdapterFlysystemBundle(), |
||
22 | //new \Translation\PlatformAdapter\PhraseApp\Bridge\Symfony\TranslationAdapterPhraseAppBundle(), |
||
23 | ]; |
||
24 | |||
25 | return $bundles; |
||
26 | } |
||
27 | |||
28 | public function getRootDir() |
||
32 | |||
33 | public function getCacheDir() |
||
37 | |||
38 | public function getLogDir() |
||
42 | |||
43 | public function registerContainerConfiguration(LoaderInterface $loader) |
||
51 | |||
52 | /** |
||
53 | * Gets the application root dir (path of the project's LICENSE file). |
||
54 | * |
||
55 | * @return string The project root dir |
||
56 | */ |
||
57 | public function getProjectDir() |
||
73 | } |
||
74 |