Skip to content

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

Merged
merged 1 commit into from
Jun 12, 2019

Conversation

javiereguiluz
Copy link
Member

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

Copy link
Member

@wouterj wouterj left a 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;
Copy link
Member

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

@javiereguiluz
Copy link
Member Author

javiereguiluz commented Jun 11, 2019

Wouter, thanks for your review. I think you were right about everything, so I made some fixes and improvements.

Copy link
Member

@wouterj wouterj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@javiereguiluz javiereguiluz merged commit 27bd3bb into symfony:4.2 Jun 12, 2019
javiereguiluz added a commit that referenced this pull request Jun 12, 2019
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants