Incenteev ParameterHandler, Composer, Capifony
24 of February, 2014
In Symfony projects
parameters.yml is a place to store environment specific parameters.
To keep project repository clean
parameters.yml.dist with sample values is usually checked in instead of real configuration.
To deal with these files there is Incenteev ParameterHandler tool.
It allows to interactively add missing parameters from
It also removes parameters from
.yml if they are missing in
.yml.dist as well.
To keep outdated parameters you can reconfigure default behavior via composer, but better and cleaner way is to always keep all the relevant sample parameters in your
P. S. Just in case if you wondering how to solve it via configuration, here is code snippet for you:comments powered by Disqus