mirror of
https://github.com/symfony/recipes.git
synced 2026-09-12 07:36:30 +03:00
[framework-bundle/5.3] fix importing services/routes.php
This commit is contained in:
@@ -19,8 +19,8 @@ class Kernel extends BaseKernel
|
||||
if (is_file(\dirname(__DIR__).'/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);
|
||||
} else {
|
||||
$container->import('../config/{services}.php');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,8 +31,8 @@ class Kernel extends BaseKernel
|
||||
|
||||
if (is_file(\dirname(__DIR__).'/config/routes.yaml')) {
|
||||
$routes->import('../config/routes.yaml');
|
||||
} elseif (is_file($path = \dirname(__DIR__).'/config/routes.php')) {
|
||||
(require $path)($routes->withPath($path), $this);
|
||||
} else {
|
||||
$routes->import('../config/{routes}.php');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user