1 | <?php |
||
38 | class AppKernel extends Kernel |
||
39 | { |
||
40 | public function registerBundles() : array |
||
41 | { |
||
42 | $bundles = [ |
||
43 | new AppBundle(), |
||
44 | new DoctrineBundle(), |
||
45 | new FrameworkBundle(), |
||
46 | new HttplugBundle(), |
||
47 | new MonologBundle(), |
||
48 | new NelmioCorsBundle(), |
||
49 | new OldSoundRabbitMqBundle(), |
||
50 | new ONGRElasticsearchBundle(), |
||
51 | new SecurityBundle(), |
||
52 | new SimpleBusCommandBusBundle(), |
||
53 | new SimpleBusEventBusBundle(), |
||
54 | new SncRedisBundle(), |
||
55 | new SwiftmailerBundle(), |
||
56 | new WarezgibzzzQueryBusBundle(), |
||
57 | ]; |
||
58 | |||
59 | if (in_array($this->getEnvironment(), ['dev', 'test'], true)) { |
||
60 | $bundles[] = new DebugBundle(); |
||
61 | |||
62 | if ('dev' === $this->getEnvironment()) { |
||
63 | $bundles[] = new DoctrineFixturesBundle(); |
||
64 | $bundles[] = new WebServerBundle(); |
||
65 | } |
||
66 | } |
||
67 | |||
68 | return $bundles; |
||
69 | } |
||
70 | |||
71 | public function getRootDir() : string |
||
75 | |||
76 | public function getCacheDir() : string |
||
80 | |||
81 | public function getLogDir() : string |
||
85 | |||
86 | public function registerContainerConfiguration(LoaderInterface $loader) : void |
||
90 | |||
91 | protected function getContainerBaseClass() : string |
||
99 | } |
||
100 |