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

[Cookbook][Configuration] add configuration cookbook handlig parameters in Configurator class#3420

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

Conversation

cordoval
Copy link
Contributor

QA
Doc fix?yes
New docs?no
Applies to2.3+
Fixed tickets#3219
LicenseCC-ASA 3.0 Unported

Sent usingGush

@wouterj
Copy link
Member

Wow, you are also heavily contributing to the docs? 😉 FYI, the License row is not needed in the doc PR format.

@@ -89,6 +89,8 @@ The second method has several specific advantages:
supported configuration settings for which backward compatibility will
be maintained.

For other usages of the parameter ``%`` syntax see :doc:`Configuration </cookbook/configuration>`.
Copy link
Member

Choose a reason for hiding this comment

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

put the hole:doc: role on a new line

Copy link
Member

Choose a reason for hiding this comment

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

and this should be placed in a.. seealso:: directive

@wouterj
Copy link
Member

@cordoval, what do you mean? You can use it at any time to resolve the string into a parameter value, if the syntax is correct.

``%kernel.debug%`` debug mode parameter to make your bundle adapt its
configuration depending on this. For this case you cannot use
the syntax directly and expect this to work. The configuration handling
will just tread this ``%kernel.debug%`` as a string. Consider
Copy link

Choose a reason for hiding this comment

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

tread -> treat?

@cordoval
Copy link
ContributorAuthor

@wouterj about theresolveValue I am still not sure, AsseticBundle and TwigBundle don't use it. No?

@@ -6,6 +6,7 @@ Configuration

environments
override_dir_structure
using_configuration_parameters
Copy link
Member

Choose a reason for hiding this comment

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

I think we're missing the addition incookbook/map.rst.inc

@weaverryan
Copy link
Member

Hey Luis!

I think you did some nice writing on this entry, thanks for starting it! But, I want to make it much smaller. Imo, this entry is too large for the small question that it's answering. After reading it, I don't think we should talk about how parameters are used or what they are at all. The point of this article, and what I think we should rename it to, is "How to use Parameters (e.g. kernel.debug) within a DependencyInjection Extension Class". Then, I think we should show them the answer directly.

This comment comes after my line-comments above - I don't think we need to worry about those anymore because I think these sections should be removed.

What do you think?

@cordoval
Copy link
ContributorAuthor

@weaverryan agree, working on this right now

@cordoval
Copy link
ContributorAuthor

@weaverryan 🚢 🇮🇹 boss

.. seealso::

For other usages of the parameter ``%`` syntax see
:doc:`Using Parameters Within A Dependency Injection Class </cookbook/using_parameters_in_dic>`.
Copy link
Member

Choose a reason for hiding this comment

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

You don't have to use the title here:

:doc:`</cookbook/using_parameters_in_dic>`.

Copy link
Member

Choose a reason for hiding this comment

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

Additionally, the document is located at ``/cookbook/configuration/using_parameters_in_dic`.

.. seealso::

For other usages of the parameter ``%`` syntax see
:doc:`</cookbook/configuration/using_parameters_in_dic>`.
Copy link
Member

Choose a reason for hiding this comment

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

this is no longer true, is it?

@cordoval
Copy link
ContributorAuthor

bump 👶

@cordoval
Copy link
ContributorAuthor

bump@weaverryan@wouterj

@wouterj
Copy link
Member

there is not much to bump me for.. I've reviewed it. Now, you only need to be patient. Believe me, you're PR isn't lost, ryan just didn't had the time to review it (with such big changes, it'll take longer to review and thus longer to merge)

@weaverryan
Copy link
Member

Yep, I'll review this shortly - I need to merge in some smaller PR's first :)

@weaverryan
Copy link
Member

I like it! A small, but complex topic with a nice explanation. Great work!

weaverryan added a commit that referenced this pull requestMar 18, 2014
…ndlig parameters in Configurator class (cordoval)This PR was merged into the 2.3 branch.Discussion----------[Cookbook][Configuration] add configuration cookbook handlig parameters in Configurator class| Q             | A                   || ---           | ---                 || Doc fix?      | yes                 || New docs?     | no                  || Applies to    | 2.3+                || Fixed tickets |#3219               || License       | CC-ASA 3.0 Unported | Sent using [Gush](https://github.com/cordoval/gush)Commits-------9710bb5 final touchesad27a83 address comments by xabbuha6bda5e address weaverryan comments28c144a plug xml and php version of the configurationc07c655 fix see also blockec13feb plug changes according to comments243c0d1 create configuration cookbook with ways of handling paramters in Configurator class
@weaverryanweaverryan merged commit9710bb5 intosymfony:2.3Mar 18, 2014
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

6 participants
@cordoval@wouterj@weaverryan@stof@xabbuh@ggam

[8]ページ先頭

©2009-2025 Movatter.jp