mirror of
https://github.com/symfony/recipes.git
synced 2026-09-11 15:16:30 +03:00
feature #123 Move routing configuration to routes/ instead of routing/ (fabpot)
This PR was merged into the master branch.
Discussion
----------
Move routing configuration to routes/ instead of routing/
| Q | A
| ------------- | ---
| License | MIT
Commits
-------
f5549bd 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
|
||||
{
|
||||
$confDir = dirname(__DIR__).'/config';
|
||||
if (is_dir($confDir.'/routing/')) {
|
||||
$routes->import($confDir.'/routing/*'.self::CONFIG_EXTS, '/', 'glob');
|
||||
if (is_dir($confDir.'/routes/')) {
|
||||
$routes->import($confDir.'/routes/*'.self::CONFIG_EXTS, '/', 'glob');
|
||||
}
|
||||
if (is_dir($confDir.'/routing/'.$this->environment)) {
|
||||
$routes->import($confDir.'/routing/'.$this->environment.'/**/*'.self::CONFIG_EXTS, '/', 'glob');
|
||||
if (is_dir($confDir.'/routes/'.$this->environment)) {
|
||||
$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