From 982e25ceb6dab842c4dd2070428177c3c7014c29 Mon Sep 17 00:00:00 2001 From: Yassine Guedidi Date: Sat, 11 Jan 2025 04:56:01 +0100 Subject: [PATCH] Load parameters.yml from the kernel --- app/AppKernel.php | 4 ++++ app/config/config.yml | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/AppKernel.php b/app/AppKernel.php index 0e9d62e4b..699a7ee79 100644 --- a/app/AppKernel.php +++ b/app/AppKernel.php @@ -67,6 +67,10 @@ class AppKernel extends Kernel 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(function (ContainerBuilder $container) { diff --git a/app/config/config.yml b/app/config/config.yml index 77d792221..242db19b2 100644 --- a/app/config/config.yml +++ b/app/config/config.yml @@ -1,5 +1,4 @@ imports: - - { resource: parameters.yml } - { resource: security.yml } - { resource: services.yml } - { resource: wallabag.yml }