1 | <?php |
||
9 | class TestKernel extends Kernel |
||
10 | { |
||
11 | const STORAGE_VAR_NAME = 'STORAGE'; |
||
12 | |||
13 | /** |
||
14 | * {@inheritdoc} |
||
15 | */ |
||
16 | public function registerBundles() |
||
22 | |||
23 | /** |
||
24 | * {@inheritdoc} |
||
25 | */ |
||
26 | public function registerContainerConfiguration(LoaderInterface $loader) |
||
30 | |||
31 | protected function buildContainer() |
||
39 | } |
||
40 | |||
51 |
Having each class in a dedicated file usually plays nice with PSR autoloaders and is therefore a well established practice. If you use other autoloaders, you might not want to follow this rule.