X-Git-Url: https://git.rapsys.eu/airlibre/blobdiff_plain/3ebfc55da8774136b1ed9f61894c4f80f2329c91..88ede4d5f2423f918681c917595ac1574b75ccc1:/src/Kernel.php?ds=inline diff --git a/src/Kernel.php b/src/Kernel.php index 03debca..779cd1f 100644 --- a/src/Kernel.php +++ b/src/Kernel.php @@ -3,40 +3,9 @@ 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 - { - $projectDir = $this->getProjectDir(); - - $container->import($projectDir.'/config/{packages}/*.yaml'); - $container->import($projectDir.'/config/{packages}/'.$this->environment.'/*.yaml'); - - if (is_file($projectDir.'/config/services.yaml')) { - $container->import($projectDir.'/config/services.yaml'); - $container->import($projectDir.'/config/{services}_'.$this->environment.'.yaml'); - } else { - $container->import($projectDir.'/config/{services}.php'); - } - } - - protected function configureRoutes(RoutingConfigurator $routes): void - { - $projectDir = $this->getProjectDir(); - - $routes->import($projectDir.'/config/{routes}/'.$this->environment.'/*.yaml'); - $routes->import($projectDir.'/config/{routes}/*.yaml'); - - if (is_file($projectDir.'/config/routes.yaml')) { - $routes->import($projectDir.'/config/routes.yaml'); - } else { - $routes->import($projectDir.'/config/{routes}.php'); - } - } }