From efbc8e795954581aefce14c8837bc75a53f580e5 Mon Sep 17 00:00:00 2001 From: Yassine Guedidi Date: Tue, 18 Feb 2025 01:11:01 +0100 Subject: [PATCH] Add deprecation notice about parameters.yml file --- app/AppKernel.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/AppKernel.php b/app/AppKernel.php index a4f2c1d26..d9d90b0c9 100644 --- a/app/AppKernel.php +++ b/app/AppKernel.php @@ -69,6 +69,8 @@ class AppKernel extends Kernel { if (file_exists($this->getProjectDir() . '/app/config/parameters.yml')) { $loader->load($this->getProjectDir() . '/app/config/parameters.yml'); + + @trigger_error('The "app/config/parameters.yml" file is deprecated and will not be supported in a future version. Move your configuration to environment variables and remove the file.', \E_USER_DEPRECATED); } $loader->load($this->getProjectDir() . '/app/config/config_' . $this->getEnvironment() . '.yml');