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] Fix by-type args injection#24978

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

Closed

Conversation

@nicolas-grekas
Copy link
Member

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

Three fixes:

  • arguments should have higher priority than bindings
  • $named arguments should have higher priority thanBy\TypeHint arguments
  • doubled same-type should work, not only the first should be wired

@sroze I might need your help for adding tests, would be awesome!

@sroze
Copy link
Contributor

sroze commentedNov 16, 2017
edited
Loading

@nicolas-grekas can you give me a PHP class example that showcases what you try to solve? I can't reproduce the last issue 🤔

stof added a commit that referenced this pull requestNov 17, 2017
… on multiple parameters (nicolas-grekas, sroze)This PR was merged into the 3.4 branch.Discussion----------[DependencyInjection] Single typed argument can be applied on multiple parameters| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | ø| License       | MIT| Doc PR        | øI'm@nicolas-grekas' test writer today. This makes the argument resolution working when injecting the same type multiple times (sub-set of PR#24978)Commits-------d512654 Test that named arguments are prioritized over typehintedbf7eeef Prove that change is working with tests2176be7 [DI] Fix by-type args injection
@stof
Copy link
Member

stof commentedNov 17, 2017
edited
Loading

@nicolas-grekas do we still need the pass order change ?

@keradus
Copy link
Member

any test showing the fix would be nice as well ;)

@nicolas-grekas
Copy link
MemberAuthor

Tests have been added as part of#24991

@nicolas-grekasnicolas-grekas deleted the di-named-types branchNovember 19, 2017 18:20
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

3.4

Development

Successfully merging this pull request may close these issues.

5 participants

@nicolas-grekas@sroze@stof@keradus@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp