symfony-cmf / cmf-sandbox

Base project for trying CMF components integration
http://cmf.symfony.com
Other
367 stars 140 forks source link

Use Enviroment Variables instead of parameters.yml #385

Open ElectricMaxxx opened 7 years ago

ElectricMaxxx commented 7 years ago

As described in http://fabien.potencier.org/symfony4-best-practices.html we should introduce enviroment variabled over parameters.

dbu commented 7 years ago

if i read that correctly, we essentially should create a .env file to define those env variables. for local use, that seems to be the default method to do things.

ElectricMaxxx commented 7 years ago

Not only. In sandbox we create a .env.dist which should be copied and customized. In website we create one for our local development and one for production. In general, bundles served by flex will add their own parameters when loading (an config and bundle entry and ...)