1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-08-06 17:41:01 +00:00

Load parameters.yml from the kernel

This commit is contained in:
Yassine Guedidi 2025-01-11 04:56:01 +01:00
parent 10618103b6
commit 982e25ceb6
2 changed files with 4 additions and 1 deletions

View file

@ -67,6 +67,10 @@ class AppKernel extends Kernel
public function registerContainerConfiguration(LoaderInterface $loader) public function registerContainerConfiguration(LoaderInterface $loader)
{ {
if (file_exists($this->getProjectDir() . '/app/config/parameters.yml')) {
$loader->load($this->getProjectDir() . '/app/config/parameters.yml');
}
$loader->load($this->getProjectDir() . '/app/config/config_' . $this->getEnvironment() . '.yml'); $loader->load($this->getProjectDir() . '/app/config/config_' . $this->getEnvironment() . '.yml');
$loader->load(function (ContainerBuilder $container) { $loader->load(function (ContainerBuilder $container) {

View file

@ -1,5 +1,4 @@
imports: imports:
- { resource: parameters.yml }
- { resource: security.yml } - { resource: security.yml }
- { resource: services.yml } - { resource: services.yml }
- { resource: wallabag.yml } - { resource: wallabag.yml }