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] Detect circular references with ChildDefinition parent#28480

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:3.4fromSeb33300:patch-2
Sep 18, 2018
Merged

[DI] Detect circular references with ChildDefinition parent#28480

nicolas-grekas merged 1 commit intosymfony:3.4fromSeb33300:patch-2
Sep 18, 2018

Conversation

@Seb33300
Copy link
Contributor

@Seb33300Seb33300 commentedSep 16, 2018
edited by nicolas-grekas
Loading

QA
Branch?3.4 (be careful when merging)
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#28312
LicenseMIT
Doc PR

I will provide a test case if the fix looks good for you :)

@Seb33300
Copy link
ContributorAuthor

Oups, didn't see that someone already worked on it:#28452

@Seb33300
Copy link
ContributorAuthor

Seb33300 commentedSep 16, 2018
edited
Loading

Just pushed a test case since it looks to be the good way to fix this issue regarding comments on the other pull request.

I pushed on master because it is a very similar issue as the previous one I fixed (#28315) which was merged on master.

}

/**
* @expectedException \Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

could be worth adding an@expectedExceptionMessage: right now, I get:Service "a": Service "a": Service "a": Service "a": Circular reference detected for service "c", path: "c -> b -> a -> c"., which might need some tweaks :)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

hmm, that'sresolveDefinition prefixing the exception message. And the multiple prefixing looks really weird though.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Oups, didn't see that. I just pushed a fix.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

still worth adding@expectedExceptionMessage :)

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Maybe@expectedExceptionMessageRegExp to test if exception message is not prefixed?

@nicolas-grekas
Copy link
Member

(for 3.4!)

@nicolas-grekasnicolas-grekas added this to the3.4 milestoneSep 17, 2018
@nicolas-grekasnicolas-grekas changed the base branch frommaster to3.4September 18, 2018 09:39
@nicolas-grekas
Copy link
Member

Thank you@Seb33300.

@nicolas-grekasnicolas-grekas merged commit2a59c8e intosymfony:3.4Sep 18, 2018
nicolas-grekas added a commit that referenced this pull requestSep 18, 2018
…t (Seb33300)This PR was submitted for the master branch but it was squashed and merged into the 3.4 branch instead (closes#28480).Discussion----------[DI] Detect circular references with ChildDefinition parent| Q             | A| ------------- | ---| Branch?       | 3.4 (be careful when merging)| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#28312| License       | MIT| Doc PR        |I will provide a test case if the fix looks good for you :)Commits-------2a59c8e [DI] Detect circular references with ChildDefinition parent
@Seb33300Seb33300 deleted the patch-2 branchSeptember 18, 2018 09:45
This was referencedSep 30, 2018
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

@stofstofstof approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

3.4

Development

Successfully merging this pull request may close these issues.

4 participants

@Seb33300@nicolas-grekas@stof@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp