| Total Complexity | 3 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class TestKernel extends Kernel |
||
| 14 | { |
||
| 15 | use MicroKernelTrait; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @inheritDoc |
||
| 19 | */ |
||
| 20 | public function registerBundles(): iterable |
||
| 21 | { |
||
| 22 | return [ |
||
| 23 | new FrameworkBundle(), |
||
| 24 | new TwigBundle(), |
||
| 25 | new MenuBundle() |
||
| 26 | ]; |
||
| 27 | } |
||
| 28 | |||
| 29 | protected function configureContainer(ContainerConfigurator $container) |
||
| 30 | { |
||
| 31 | $container->extension('framework', [ |
||
| 32 | 'secret' => "F00", |
||
| 33 | 'router' => ['utf8' => true] |
||
| 34 | ]); |
||
| 35 | |||
| 36 | $container->extension('twig', [ |
||
| 37 | 'paths' => ['tests/app/src/Resources/views' => '__main__'] |
||
| 38 | ]); |
||
| 39 | |||
| 40 | $container->import('Resources/config/services.test.yaml'); |
||
| 41 | $container->import('Resources/config/controller.test.yaml'); |
||
| 42 | } |
||
| 43 | |||
| 44 | protected function configureRoutes(RoutingConfigurator $routes) |
||
| 45 | { |
||
| 46 | $routes->import(__DIR__ . '/Resources/config/routes.test.yaml'); |
||
| 47 | } |
||
| 49 | } |