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