-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Revamped the main configuration file #11690
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work! Did a quick review, it's to big to review very thoroughly :)
#. Add the needed configuration files in ``config/packages/staging/`` to | ||
define the behavior of the new environment. Symfony loads first the files in | ||
``config/packages/*.yaml``, so you must only configure the differences with | ||
those files; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add a tip that, if the configuration is equal to some other env, using symlinks is a great idea? I.e. in our staging environment, almost everything is production settings, except from framework.debug
and monolog. So all other config/packages/prod/*.yaml
are symlinked to config/packages/staging/*.yaml
Wouter, thanks for your review. I think you were right about everything, so I made some fixes and improvements. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
ba206a2
to
27bd3bb
Compare
This PR was squashed before being merged into the 4.2 branch (closes #11690). Discussion ---------- Revamped the main configuration file The main configuration file is a mess and looks outdated. This PR revamps everything and merges the main 4 config files into a single reference file. This unique file explains 80% of what you need to know about config: * The config/ structure * The config/packages/ files * Config formats * Config parameters * Config Environments * Env Vars * The multiple .env files Commits ------- 27bd3bb Revamped the main configuration file
The main configuration file is a mess and looks outdated. This PR revamps everything and merges the main 4 config files into a single reference file. This unique file explains 80% of what you need to know about config: