Skip to content
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

Documentation appears to contradict itself regarding circular dependencies and constructor injection #658

Open
vargonian opened this issue Sep 4, 2019 · 0 comments

Comments

@vargonian
Copy link

The documentation states:

Constructor injection guarantees no circular dependencies between classes

Experience has shown this to be untrue, plus, the documentation appears to contradict itself here:

If two classes are injected into each other and both classes use contructor injection, then obviously it is not possible for zenject to create both of these classes. However, what you can do instead is switch to use method injection or field/property injection instead.

Could this be resolved and/or cleared up in the documentation?

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

No branches or pull requests

1 participant