Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 15 |
| Kernel | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
42 | |
0.00% |
0 / 15 |
| configureContainer | |
0.00% |
0 / 1 |
12 | |
0.00% |
0 / 8 |
|||
| configureRoutes | |
0.00% |
0 / 1 |
12 | |
0.00% |
0 / 7 |
|||
| <?php | |
| namespace App; | |
| use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; | |
| use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; | |
| use Symfony\Component\HttpKernel\Kernel as BaseKernel; | |
| use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator; | |
| class Kernel extends BaseKernel | |
| { | |
| use MicroKernelTrait; | |
| protected function configureContainer(ContainerConfigurator $container): void | |
| { | |
| $container->import('../config/{packages}/*.yaml'); | |
| $container->import('../config/{packages}/'.$this->environment.'/*.yaml'); | |
| if (is_file(\dirname(__DIR__).'/config/services.yaml')) { | |
| $container->import('../config/services.yaml'); | |
| $container->import('../config/{services}_'.$this->environment.'.yaml'); | |
| } elseif (is_file($path = \dirname(__DIR__).'/config/services.php')) { | |
| (require $path)($container->withPath($path), $this); | |
| } | |
| } | |
| protected function configureRoutes(RoutingConfigurator $routes): void | |
| { | |
| $routes->import('../config/{routes}/'.$this->environment.'/*.yaml'); | |
| $routes->import('../config/{routes}/*.yaml'); | |
| if (is_file(\dirname(__DIR__).'/config/routes.yaml')) { | |
| $routes->import('../config/routes.yaml'); | |
| } elseif (is_file($path = \dirname(__DIR__).'/config/routes.php')) { | |
| (require $path)($routes->withPath($path), $this); | |
| } | |
| } | |
| } |