cmf-sandbox icon indicating copy to clipboard operation
cmf-sandbox copied to clipboard

Use Enviroment Variables instead of parameters.yml

Open ElectricMaxxx opened this issue 8 years ago • 2 comments

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

ElectricMaxxx avatar Sep 08 '17 07:09 ElectricMaxxx

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.

dbu avatar Sep 08 '17 13:09 dbu

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 ...)

ElectricMaxxx avatar Sep 08 '17 13:09 ElectricMaxxx