mirror of
https://github.com/symfony/recipes.git
synced 2026-09-12 07:36:30 +03:00
moved routing configuration to routes/ instead of routing/
This commit is contained in:
@@ -50,12 +50,12 @@ final class Kernel extends BaseKernel
|
|||||||
protected function configureRoutes(RouteCollectionBuilder $routes): void
|
protected function configureRoutes(RouteCollectionBuilder $routes): void
|
||||||
{
|
{
|
||||||
$confDir = dirname(__DIR__).'/config';
|
$confDir = dirname(__DIR__).'/config';
|
||||||
if (is_dir($confDir.'/routing/')) {
|
if (is_dir($confDir.'/routes/')) {
|
||||||
$routes->import($confDir.'/routing/*'.self::CONFIG_EXTS, '/', 'glob');
|
$routes->import($confDir.'/routes/*'.self::CONFIG_EXTS, '/', 'glob');
|
||||||
}
|
}
|
||||||
if (is_dir($confDir.'/routing/'.$this->environment)) {
|
if (is_dir($confDir.'/routes/'.$this->environment)) {
|
||||||
$routes->import($confDir.'/routing/'.$this->environment.'/**/*'.self::CONFIG_EXTS, '/', 'glob');
|
$routes->import($confDir.'/routes/'.$this->environment.'/**/*'.self::CONFIG_EXTS, '/', 'glob');
|
||||||
}
|
}
|
||||||
$routes->import($confDir.'/routing'.self::CONFIG_EXTS, '/', 'glob');
|
$routes->import($confDir.'/routes'.self::CONFIG_EXTS, '/', 'glob');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user