mirror of
https://github.com/symfony/recipes.git
synced 2026-09-11 23:26:27 +03:00
Load routes for specific env first (bis)
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user