Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[DependencyInjection] Fix a DI circular reference recognition bug #7699

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 19, 2013
Merged

[DependencyInjection] Fix a DI circular reference recognition bug #7699

merged 1 commit into from
Apr 19, 2013

Conversation

tgabi333
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? no
Fixed tickets
License MIT
Doc PR

plus add ability to detect deeper circular references eg: A -> B -> C -> B

@@ -61,6 +61,19 @@ public function testProcessDetectsIndirectCircularReference()
$this->process($container);
}

/**
* @expectedException \RuntimeException
Copy link
Member

Choose a reason for hiding this comment

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

shouldn't you expect a ServiceCircularReferenceException ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

All these test cases expect RuntimeException, i've just followed. Would you like me to replace all?

Copy link
Member

Choose a reason for hiding this comment

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

Yes, the more specific, the better.

@fabpot
Copy link
Member

fabpot commented Apr 18, 2013

Can you also add the pull request table in your description? (see http://symfony.com/doc/current/contributing/code/patches.html#make-a-pull-request),

fabpot added a commit that referenced this pull request Apr 19, 2013
This PR was merged into the 2.1 branch.

Discussion
----------

[DependencyInjection] Fix a DI circular reference recognition bug

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | no
| Fixed tickets |
| License       | MIT
| Doc PR        |

plus add ability to detect deeper circular references eg: A -> B -> C -> B

Commits
-------

8a434ed fix a DI circular reference recognition bug
@fabpot fabpot merged commit 8a434ed into symfony:2.1 Apr 19, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants