symfony: How to set configuration parameters files for different environments? symfony: How to set configuration parameters files for different environments? symfony symfony

symfony: How to set configuration parameters files for different environments?


You can put all the parameters used in your dev environment in a app\config\parameters_dev.yml file (you need to create it) and then import it in your app\config\config_dev.yml:

imports:    - { resource: config.yml }    - { resource: parameters_dev.yml }

So when you work in local any parameter used in production will be overwritten by the new file with the right parameters.

And remember to Clear the cache!