Closed m-vo closed 5 years ago
Using a parameters.yml
file is a leftover from Symfony 3, therefore I would prefer not to merge this PR and switching to .env
files instead.
https://symfony.com/blog/new-in-symfony-4-2-define-env-vars-per-environment
Of course, we have to continue to support app/config/parameters.yml
to remain backwards compatible, but we should promote using an .env.local
file instead of config/parameters.yml
.
Agreed. Shall we remove the existing line then altogether? (As the gitignore is only a helper and nothing critical.)
Of course, we have to continue to support
app/config/parameters.yml
to remain backwards compatible, but we should promote using an.env.local
file instead ofconfig/parameters.yml
.
Currently, .env.local
only works if also an .env
is present:
// which seems to be required in any case, nvm ;)
See contao/contao#768.
This adds
/config/parameters.yml
to the project's .gitignore (in order to match Symfony 4 best practices not creating an app folder).We could also remove the old line completely. This depends on how much we want people to embrace this practice I guess. :wink: