From 2902cb7fad763c6129c82f82ceec80b7ffeca51f Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Mon, 1 Apr 2019 08:37:14 +0200 Subject: [PATCH] Load routes for specific env first (bis) --- symfony/framework-bundle/3.3/src/Kernel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/symfony/framework-bundle/3.3/src/Kernel.php b/symfony/framework-bundle/3.3/src/Kernel.php index edb95a08..81837398 100644 --- a/symfony/framework-bundle/3.3/src/Kernel.php +++ b/symfony/framework-bundle/3.3/src/Kernel.php @@ -54,8 +54,8 @@ class Kernel extends BaseKernel { $confDir = $this->getProjectDir().'/config'; - $routes->import($confDir.'/{routes}/*'.self::CONFIG_EXTS, '/', 'glob'); $routes->import($confDir.'/{routes}/'.$this->environment.'/**/*'.self::CONFIG_EXTS, '/', 'glob'); + $routes->import($confDir.'/{routes}/*'.self::CONFIG_EXTS, '/', 'glob'); $routes->import($confDir.'/{routes}'.self::CONFIG_EXTS, '/', 'glob'); } }