| Total Complexity | 6 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class Kernel extends BaseKernel |
||
| 13 | { |
||
| 14 | use MicroKernelTrait; |
||
|
|
|||
| 15 | |||
| 16 | protected function configureContainer(ContainerConfigurator $container): void |
||
| 17 | { |
||
| 18 | $container->import('../../../config/{packages}/*.yaml'); |
||
| 19 | $container->import('../../../config/{packages}/' . $this->environment . '/*.yaml'); |
||
| 20 | |||
| 21 | if (\is_file(\dirname(__DIR__, 3) . '/config/services.yaml')) { |
||
| 22 | $container->import('../../../config/services.yaml'); |
||
| 23 | $container->import('../../../config/{services}_' . $this->environment . '.yaml'); |
||
| 24 | } elseif (\is_file($path = \dirname(__DIR__, 3) . '/config/services.php')) { |
||
| 25 | (require $path)($container->withPath($path), $this); |
||
| 26 | } |
||
| 27 | } |
||
| 28 | |||
| 29 | protected function configureRoutes(RoutingConfigurator $routes): void |
||
| 38 | } |
||
| 39 | } |
||
| 41 |