Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Updated main configuration guide to Flex#8588

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
wouterj wants to merge2 commits intosymfony:masterfromwouterj:flex/configuration

Conversation

@wouterj
Copy link
Member

No description provided.

yceruto reacted with thumbs up emoji
@wouterjwouterj added this to the4.0 milestoneNov 3, 2017
Copy link
Member

@javiereguiluzjaviereguiluz left a comment

Choose a reason for hiding this comment

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

Nice changes here! Thanks Wouter.


However, a ``.env.dist`` file *is* committed (with dummy values). This file
isn't read by Symfony: it's just a reference so that Symfony knows which
parameters need to be defined in the ``.env.dist`` file. If you add or remove
Copy link
Member

Choose a reason for hiding this comment

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

need to be defined in the ``.env.dist`` file ->need to be defined in the ``.env`` file ?

-------------------------------

The main configuration file is called ``config.yml``:
The configuration for a package can be found in ``config/packages``. For
Copy link
Member

Choose a reason for hiding this comment

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

can be found in config/packages -->can be found in config/packages/ please always add a trailing slash when referencing directories so the reader never wonders if it's a dir or a file without extension. Thanks!

-------------------------------

The main configuration file is called ``config.yml``:
The configuration for a package can be found in ``config/packages/``. For
Copy link
Member

Choose a reason for hiding this comment

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

for each package...

The configuration has some special top-level keys. One of them is called
``parameters``: it's used to define *variables* that can be referenced in *any*
other configuration file. For example, when installing the *translation*
package, ``config/services.yaml`` defines a ``locale`` parameter:
Copy link
Member

Choose a reason for hiding this comment

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

How about:

For example, when you install thetranslation package, alocale parameter is added toconfig/services.yaml:


However, a ``.env.dist`` file *is* committed (with dummy values). This file
isn't read by Symfony: it's just a reference so that Symfony knows which
parameters need to be defined in the ``.env.dist`` file. If you add or remove
Copy link
Member

Choose a reason for hiding this comment

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

parameters ->variables (to make it a bit clear that these aren't parameters)

However, a ``.env.dist`` file *is* committed (with dummy values). This file
isn't read by Symfony: it's just a reference so that Symfony knows which
parameters need to be defined in the ``.env.dist`` file. If you add or remove
keys to ``.env``, add or remove them from ``.env`` too, so both files are
Copy link
Member

Choose a reason for hiding this comment

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

the second should be.env.dist.

@wouterj
Copy link
MemberAuthor

Ready to merge!

@weaverryan
Copy link
Member

Wooo! Thank you for this BIG pr Wouter!

weaverryan added a commit that referenced this pull requestNov 24, 2017
…iluz, weaverryan)This PR was merged into the 4.0 branch.Discussion----------Updated the best practice article about configThis was the only remaining article to be updated in "Best Practices".Related to this:* The main config.rst is being updated in ~~#8588~~* Some config/* articles are being updated in ~~#8647~~.* I'm going to update the rest of config/* articles.Commits-------175a4e8 minor tweaksb973f0c Updated the best practice article about config
weaverryan added a commit that referenced this pull requestDec 1, 2017
This PR was squashed before being merged into the 4.0 branch (closes#8592).Discussion----------[Flex] Update routing & controller chaptersMore progress in updating all of the "Getting Started" guides. I will next do templating, configuration (though this has been done in#8588) and also `service_container`, which I'd like to move into Getting Started.Commits-------0cbbc28 fixing build errors7f0163a tweaks10563a9 Proofing the controller chapters44f2ff8 more work on getting started docs218e2d4 WIP controller chapter8b923e6 WIP controller changes89d56ea Updating routing for Flex
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@weaverryanweaverryanweaverryan requested changes

@javiereguiluzjaviereguiluzjaviereguiluz approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

4.0

Development

Successfully merging this pull request may close these issues.

4 participants

@wouterj@weaverryan@javiereguiluz@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp