| Total Complexity | 7 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class Kernel extends BaseKernel |
||
| 11 | { |
||
| 12 | use MicroKernelTrait; |
||
|
|
|||
| 13 | |||
| 14 | public function __construct(string $environment, bool $debug) |
||
| 15 | { |
||
| 16 | date_default_timezone_set( 'UTC' ); |
||
| 17 | |||
| 18 | parent::__construct($environment, $debug); |
||
| 19 | } |
||
| 20 | |||
| 21 | protected function configureContainer(ContainerConfigurator $container): void |
||
| 22 | { |
||
| 23 | $container->import('../config/{packages}/*.yaml'); |
||
| 24 | $container->import('../config/{packages}/'.$this->environment.'/*.yaml'); |
||
| 25 | |||
| 26 | if (is_file(\dirname(__DIR__).'/config/services.yaml')) { |
||
| 27 | $container->import('../config/services.yaml'); |
||
| 28 | $container->import('../config/{services}_'.$this->environment.'.yaml'); |
||
| 29 | } elseif (is_file($path = \dirname(__DIR__).'/config/services.php')) { |
||
| 30 | (require $path)($container->withPath($path), $this); |
||
| 31 | } |
||
| 32 | } |
||
| 33 | |||
| 34 | protected function configureRoutes(RoutingConfigurator $routes): void |
||
| 43 | } |
||
| 44 | } |
||
| 45 | } |
||
| 46 |