mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-22 01:49:05 +02:00
Updated symfony/framework recipe
This commit is contained in:
parent
5e1c5cef3b
commit
e40a6e6079
5 changed files with 28 additions and 46 deletions
|
@ -20,10 +20,10 @@ class Kernel extends BaseKernel
|
|||
$container->import('../config/parameters.yaml');
|
||||
|
||||
if (is_file(\dirname(__DIR__).'/config/services.yaml')) {
|
||||
$container->import('../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');
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -33,9 +33,9 @@ class Kernel extends BaseKernel
|
|||
$routes->import('../config/{routes}/*.yaml');
|
||||
|
||||
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);
|
||||
$routes->import('../config/routes.yaml');
|
||||
} else {
|
||||
$routes->import('../config/{routes}.php');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue