From: Raphaƫl Gertz Date: Tue, 27 Feb 2024 10:36:19 +0000 (+0100) Subject: Remove configure container member function X-Git-Tag: 0.1.0~50 X-Git-Url: https://git.rapsys.eu/airlibre/commitdiff_plain/8e38ee6e219e0a37e2503e5b1fa9b2a0825f8bcf?ds=inline Remove configure container member function Remove configure routes member function --- 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'); - } - } }