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

[DI] Allow ~ instead of {} for services in Yaml#21214

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:masterfromwouterj:di/null-service
Jan 9, 2017

Conversation

@wouterj
Copy link
Member

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

Now we can omit the class name, Yaml config can look like this:

services:AppBundle\Something:{}

While this works, the consistent way in Symfony for such cases is to use~. This PR allows to use~ as well, ending up with:

services:AppBundle\Something:~

linaori, gharlan, enleur, theofidry, GromNaN, podhy, jvasseur, pyrech, yceruto, and TomasVotruba reacted with thumbs up emojidunglas and TomasVotruba reacted with hooray emoji
@nicolas-grekasnicolas-grekas added this to the3.3 milestoneJan 9, 2017
@nicolas-grekas
Copy link
Member

👍

1 similar comment
@stof
Copy link
Member

stof commentedJan 9, 2017

👍

@fabpot
Copy link
Member

Thank you@wouterj.

@fabpotfabpot merged commit28a1b5a intosymfony:masterJan 9, 2017
fabpot added a commit that referenced this pull requestJan 9, 2017
This PR was merged into the 3.3-dev branch.Discussion----------[DI] Allow ~ instead of {} for services in Yaml| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | -| License       | MIT| Doc PR        | -Now we can omit the class name, Yaml config can look like this:```yamlservices:    AppBundle\Something: {}```While this works, the consistent way in Symfony for such cases is to use `~`. This PR allows to use `~` as well, ending up with:```yamlservices:    AppBundle\Something: ~```Commits-------28a1b5a Allow setting services as null
@wouterjwouterj deleted the di/null-service branchJanuary 9, 2017 14:03
@fabpotfabpot mentioned this pull requestMay 1, 2017
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

2 more reviewers

@theofidrytheofidrytheofidry approved these changes

@GuilhemNGuilhemNGuilhemN approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

3.3

Development

Successfully merging this pull request may close these issues.

7 participants

@wouterj@nicolas-grekas@stof@fabpot@theofidry@GuilhemN@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp