Total Complexity | 6 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | class Kernel extends BaseKernel |
||
20 | { |
||
21 | use MicroKernelTrait; |
||
|
|||
22 | |||
23 | protected function configureContainer(ContainerConfigurator $container): void |
||
24 | { |
||
25 | $container->import('../config/{packages}/*.yaml'); |
||
26 | $container->import('../config/{packages}/'.$this->environment.'/*.yaml'); |
||
27 | |||
28 | if (is_file(\dirname(__DIR__).'/config/services.yaml')) { |
||
29 | $container->import('../config/{services}.yaml'); |
||
30 | $container->import('../config/{services}_'.$this->environment.'.yaml'); |
||
31 | } elseif (is_file($path = \dirname(__DIR__).'/config/services.php')) { |
||
32 | (require $path)($container->withPath($path), $this); |
||
33 | } |
||
34 | } |
||
35 | |||
36 | protected function configureRoutes(RoutingConfigurator $routes): void |
||
45 | } |
||
46 | } |
||
48 |