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

[DependencyInjection] Improved yaml syntax#13892

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
fabpot merged 1 commit intosymfony:2.7fromhason-contributions:di_yaml
Mar 23, 2015

Conversation

@hason
Copy link
Contributor

QA
Bug fix?no
New feature?yes
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets
LicenseMIT
Doc PR

This PR adds support for this:

services:manager:class:UserManagerarguments:          -truecalls:          -method:setLoggerarguments:- @logger          -method:setClassarguments:              -Usertags:          -name:manageralias:user

@nicolas-grekas
Copy link
Member

👍

@stof
Copy link
Member

This implementatio currently supports mixing numeric keys and name keys for the method and the arguments, which can be confusing

@hason
Copy link
ContributorAuthor

@stof Fixed

@fabpot
Copy link
Member

Looks good to me 👍

@fabpot
Copy link
Member

@hason Can you make a PR on the docs to document this new possibility? Thanks.

@fabpot
Copy link
Member

Thank you@hason.

@fabpotfabpot merged commit0eb34f3 intosymfony:2.7Mar 23, 2015
fabpot added a commit that referenced this pull requestMar 23, 2015
This PR was merged into the 2.7 branch.Discussion----------[DependencyInjection] Improved yaml syntax| Q             | A| ------------- | ---| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets || License       | MIT| Doc PR        |This PR adds support for this:```yamlservices:    manager:        class: UserManager        arguments:          - true        calls:          - method: setLogger            arguments:              -@logger          - method: setClass            arguments:              - User        tags:          - name: manager            alias: user```Commits-------0eb34f3 [DependencyInjection] Added support for keys "method" and "arguments" in "calls" statement for yaml format
@hasonhason deleted the di_yaml branchMarch 27, 2015 21:49
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

6 participants

@hason@nicolas-grekas@stof@fabpot@javiereguiluz@aitboudad

[8]ページ先頭

©2009-2025 Movatter.jp