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] Allow binding iterable and tagged services#33623

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
nicolas-grekas merged 1 commit intosymfony:4.4fromlyrixx:dic-bind-iter
Sep 18, 2019

Conversation

@lyrixx
Copy link
Member

@lyrixxlyrixx commentedSep 18, 2019
edited
Loading

QA
Branch?4.4
Bug fix?no
New feature?yes
Deprecations?no
Tickets
LicenseMIT
Doc PR

This will allow:

services:_defaults:bind:iterable $rules:!tagged_iterator app.foo.rule_instanceof:App\Foo\Rule\RuleInterface:tags:['app.foo.rule']

fnash, rvanlaak, and mkluczka-cobiro reacted with heart emoji
@nicolas-grekas
Copy link
Member

Could you please add a test case?

@lyrixx
Copy link
MemberAuthor

I added some tests.

@nicolas-grekas
Copy link
Member

Thank you@lyrixx.

lyrixx reacted with heart emoji

nicolas-grekas added a commit that referenced this pull requestSep 18, 2019
…d services (lyrixx)This PR was merged into the 4.4 branch.Discussion----------[DependencyInjection] Allow binding iterable and tagged services| Q             | A| ------------- | ---| Branch?       | 4.4| Bug fix?      | no| New feature?  | yes| Deprecations? | no| Tickets       || License       | MIT| Doc PR        |This will allow:```yamlservices:    _defaults:        bind:            iterable $rules: !tagged_iterator app.foo.rule    _instanceof:        App\Foo\Rule\RuleInterface:            tags: ['app.foo.rule']```Commits-------2055a55 [DependencyInjection] Allow binding iterable and tagged services
@nicolas-grekasnicolas-grekas merged commit2055a55 intosymfony:4.4Sep 18, 2019
@lyrixxlyrixx deleted the dic-bind-iter branchSeptember 18, 2019 11:40
@nicolas-grekasnicolas-grekas modified the milestones:next,4.4Oct 27, 2019
This was referencedNov 12, 2019
nicolas-grekas added a commit that referenced this pull requestDec 19, 2019
…iners (nicolas-grekas)This PR was merged into the 4.4 branch.Discussion----------[DependencyInjection] Fix binding tagged services to containers| Q             | A| ------------- | ---| Branch?       | 4.4| Bug fix?      | yes| New feature?  | no| Deprecations? | no| Tickets       |Fix#34913| License       | MIT| Doc PR        | -We missed this part in#33623Commits-------9d48ba4 [DependencyInjection] Fix binding tagged services to containers
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

4.4

Development

Successfully merging this pull request may close these issues.

3 participants

@lyrixx@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp