X-Git-Url: https://git.rapsys.eu/airlibre/blobdiff_plain/15d5d62f1dc08ef7b536acf3e1e5e9479773e782..8e38ee6e219e0a37e2503e5b1fa9b2a0825f8bcf:/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'); - } - } }