| Code Coverage | ||||||||||
| Classes and Traits | Functions and Methods | Lines | ||||||||
| Total |  | 0.00% | 0 / 1 |  | 0.00% | 0 / 2 | CRAP |  | 46.15% | 6 / 13 | 
| Kernel |  | 0.00% | 0 / 1 |  | 0.00% | 0 / 2 | 6.50 |  | 46.15% | 6 / 13 | 
| configureContainer |  | 0.00% | 0 / 1 | 2.01 |  | 85.71% | 6 / 7 | |||
| configureRoutes |  | 0.00% | 0 / 1 | 6 |  | 0.00% | 0 / 6 | |||
| 1 | <?php | 
| 2 | |
| 3 | namespace App; | 
| 4 | |
| 5 | use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; | 
| 6 | use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; | 
| 7 | use Symfony\Component\HttpKernel\Kernel as BaseKernel; | 
| 8 | use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator; | 
| 9 | |
| 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 | if (is_file(\dirname(__DIR__).'/config/services.yaml')) { | 
| 20 | $container->import('../config/services.yaml'); | 
| 21 | $container->import('../config/{services}_'.$this->environment.'.yaml'); | 
| 22 | } else { | 
| 23 | $container->import('../config/{services}.php'); | 
| 24 | } | 
| 25 | } | 
| 26 | |
| 27 | protected function configureRoutes(RoutingConfigurator $routes): void | 
| 28 | { | 
| 29 | $routes->import('../config/{routes}/'.$this->environment.'/*.yaml'); | 
| 30 | $routes->import('../config/{routes}/*.yaml'); | 
| 31 | |
| 32 | if (is_file(\dirname(__DIR__).'/config/routes.yaml')) { | 
| 33 | $routes->import('../config/routes.yaml'); | 
| 34 | } else { | 
| 35 | $routes->import('../config/{routes}.php'); | 
| 36 | } | 
| 37 | } | 
| 38 | } |