-
-
Notifications
You must be signed in to change notification settings - Fork 196
Add "dump-env" command to compile .env files to .env.local.php #449
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Why is this a composer command? IMHO it should be a Symfony command ( |
At least because we want to ship this for all Symfony versions without waiting for 4.3. |
This seems a hack to me. If we go in that sens, we will move many code here. Of course I'm not strongly against this hack, but if we could find a better alternative, this will be much better |
Please, not another package to maintain. If you want, you can provide a command to 4.3 and then we could deprecate this one. Personally, I don't think it's worth the effort. |
Thank you @renanbr. |
…al.php (nicolas-grekas, renanbr) This PR was merged into the 1.2-dev branch. Discussion ---------- Add "dump-env" command to compile .env files to .env.local.php This adds a new command that compiles .env files to .env.local.php: ``` $ composer dump-env prod Successfully dumped .env files in .env.local.php ``` The generated file is used in symfony/recipes#501 Commits ------- 7e561d5 add --empty option 31b12b1 Add "dump-env" command to compile .env files to .env.local.php
I cannot understand the point of this at all. All it does is substitute the Edit: upon further inspection, it appears you are expected to produce either |
This adds a new command that compiles .env files to .env.local.php:
The generated file is used in symfony/recipes#501