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] autowire union and intersection types#43479

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
derrabus merged 1 commit intosymfony:5.4fromnicolas-grekas:di-intersect-autow
Oct 13, 2021

Conversation

@nicolas-grekas
Copy link
Member

@nicolas-grekasnicolas-grekas commentedOct 13, 2021
edited
Loading

QA
Branch?5.4
Bug fix?no
New feature?yes
Deprecations?no
Tickets#43325
LicenseMIT
Doc PR-

This PR allows autowiring an argument of typeNormalizerInterface&DenormalizerInterface if both individual types have a corresponding autowiring alias, and if both aliases point to the very same service.

This works the same with union types.

dunglas, lyrixx, ogizanagi, chalasr, ging-dev, ste93cry, jonag, Davidoc26, Kocal, yceruto, and 2 more reacted with heart emojiderrabus, ovrflo, yceruto, and ging-dev reacted with rocket emoji
@derrabus
Copy link
Member

Thank you Nicolas.

@derrabusderrabus merged commit21528c6 intosymfony:5.4Oct 13, 2021
@nicolas-grekasnicolas-grekas deleted the di-intersect-autow branchOctober 14, 2021 06:13
This was referencedNov 5, 2021
nicolas-grekas added a commit that referenced this pull requestNov 6, 2021
… together with `ServiceSubscriberInterface` (kbond)This PR was squashed before being merged into the 5.4 branch.Discussion----------[DependencyInjection] Fix support for unions/intersections together with `ServiceSubscriberInterface`| Q             | A| ------------- | ---| Branch?       | 5.4| Bug fix?      | yes| New feature?  | no| Deprecations? | no| Tickets       | -| License       | MIT| Doc PR        | -Continuation of#43479 per [discussion](#43913 (comment)) with `@nicolas`-grekas.Todo:- [x] intersection type support/tests- [x] `ServiceSubscriberTrait` supportCommits-------123842a [DependencyInjection] Fix support for unions/intersections together with `ServiceSubscriberInterface`
xabbuh added a commit that referenced this pull requestJul 20, 2022
…message (xabbuh)This PR was merged into the 5.4 branch.Discussion----------[DependencyInjection] fix expected autowiring exception message| Q             | A| ------------- | ---| Branch?       | 5.4| Bug fix?      | no| New feature?  | no| Deprecations? | no| Tickets       || License       | MIT| Doc PR        |types are sorted since#43479 in 5.4+Commits-------1373257 fix expected autowiring exception message
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@dunglasdunglasdunglas approved these changes

@derrabusderrabusderrabus approved these changes

@chalasrchalasrchalasr approved these changes

+1 more reviewer

@ogizanagiogizanagiogizanagi approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

5.4

Development

Successfully merging this pull request may close these issues.

6 participants

@nicolas-grekas@derrabus@dunglas@ogizanagi@chalasr@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp