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] Fix circular in DI with lazy + byContruct loop#39129

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.4fromjderusse:di-fix-circular
Nov 27, 2020

Conversation

@jderusse
Copy link
Member

@jderussejderusse commentedNov 20, 2020
edited
Loading

QA
Branch?4.4
Bug fix?yes
New feature?no
Deprecations?no
TicketsFix#39120
LicenseMIT
Doc PR-

This fix another issue lazy service.
It partially revert#38980 and#39021

Initially, we trusted lazy services to be lazy and not beeing called while building the services graph
=> bug#38970 when lazy deps is injected in a factory, it may be consumed directly to build the object before the graph is fully built
Fixed by#38980 => lazy service are considered as "normal service"
=> bug#39015 some loop are not resolvable with "normal service", but it shouldn't be an issue when servie proxifyied
Fixed by#39021 => lazy service are considered as "normal service" except when proxyfied
=> bug#39120 some loop are not resolvable with "normal service", but it shouldn't be an issue because the lazy service is injected in the constructor and user

Fixed by this PR => that revert to the initial state. lazy service are trusted.
But now, The IterratorArgument injected in a factory (single exception) is not more considered as lazy

@carsonbotcarsonbot added this to the4.4 milestoneNov 20, 2020
@carsonbotcarsonbot changed the titleFix circular in DI with lazy + byContruct loop[DependencyInjection] Fix circular in DI with lazy + byContruct loopNov 20, 2020
@eerison

This comment has been minimized.

@eerison
Copy link

eerison commentedNov 21, 2020
edited
Loading

@jderusse Why are you putting branch 4.4 as target? it's happen when I'm trying to use symfony 5.2 😕

@derrabus
Copy link
Member

@eerison We always fix bugs on the lowest branch that they occur on.

eerison reacted with thumbs up emoji

@nicolas-grekas
Copy link
Member

Thank you@jderusse.

@nicolas-grekasnicolas-grekas merged commit7d7fa3e intosymfony:4.4Nov 27, 2020
This was referencedNov 29, 2020
@jderussejderusse deleted the di-fix-circular branchDecember 9, 2020 22:10
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.

5 participants

@jderusse@eerison@derrabus@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp