From 5b1159fccec03cba9e1b6a345b3db00c564c59c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Pineau?= Date: Thu, 1 Oct 2020 11:53:12 +0200 Subject: [PATCH] [FrameworkBundle] Simplify the service and route registration Bracket are not needed since we can be sure the file exist --- symfony/framework-bundle/5.1/src/Kernel.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/symfony/framework-bundle/5.1/src/Kernel.php b/symfony/framework-bundle/5.1/src/Kernel.php index b0168617..655e7966 100644 --- a/symfony/framework-bundle/5.1/src/Kernel.php +++ b/symfony/framework-bundle/5.1/src/Kernel.php @@ -17,7 +17,7 @@ class Kernel extends BaseKernel $container->import('../config/{packages}/'.$this->environment.'/*.yaml'); if (is_file(\dirname(__DIR__).'/config/services.yaml')) { - $container->import('../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); @@ -30,7 +30,7 @@ class Kernel extends BaseKernel $routes->import('../config/{routes}/*.yaml'); if (is_file(\dirname(__DIR__).'/config/routes.yaml')) { - $routes->import('../config/{routes}.yaml'); + $routes->import('../config/routes.yaml'); } elseif (is_file($path = \dirname(__DIR__).'/config/routes.php')) { (require $path)($routes->withPath($path), $this); }