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

Clarify service parameters usages#3528

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

Merged
weaverryan merged 2 commits intosymfony:2.3fromwouterj:clarify-parameters
Feb 11, 2014

Conversation

wouterj
Copy link
Member

QA
Doc fix?yes
New docs?no
Applies toall
Fixed ticketsIRC

On the IRC channel, there was some confusing about parameters. The dot
notation looked like parameters are one big namespaced tree, with each
group a different node.

This PR adds a caution, so people really know it's just a convention and
parameters are just key-value elements.

Parameters do not need to be flat strings, they can also be arrays. For the XML
format, you need to use the ``type="collection"`` attribute for all parameters that are
arrays.
Parameters do not need to be flat strings, they can also contain array values.
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

changed this toarray values, to make it explicitly clear that this isn't a way to inherit parameters.

Copy link
Member

Choose a reason for hiding this comment

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

yea, very nice change

@xabbuh
Copy link
Member

👍 nice addition!

The used ``.`` notation is just a
:ref:`Symfony convention <service-naming-conventions>` to make parameters
easier to read. Parameters are just flat key-value elements, they can't be
inherited.
Copy link
Member

Choose a reason for hiding this comment

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

how aboutcan't be organized into a nested array? What do you think - I wasn't totally clear on "inherited".

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

yes, that's better :)

Copy link
Member

Choose a reason for hiding this comment

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

can you make this change real quick? That'll let me merge without any mods :)

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

done

@weaverryan
Copy link
Member

Awesome, thanks Wouter!

weaverryan added a commit that referenced this pull requestFeb 11, 2014
This PR was merged into the 2.3 branch.Discussion----------Clarify service parameters usages| Q   | A| --- | ---| Doc fix? | yes| New docs? | no| Applies to | all| Fixed tickets | IRCOn the IRC channel, there was some confusing about parameters. The dotnotation looked like parameters are one big namespaced tree, with eachgroup a different node.This PR adds a caution, so people really know it's just a convention andparameters are just key-value elements.Commits-------aaddfcd Applied comment05492b2 Clarify parameters conventions
@weaverryanweaverryan merged commitaaddfcd intosymfony:2.3Feb 11, 2014
@wouterjwouterj deleted the clarify-parameters branchFebruary 11, 2014 13:59
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.

3 participants
@wouterj@xabbuh@weaverryan

[8]ページ先頭

©2009-2025 Movatter.jp