ssannandeji / Zenject-2019

Dependency Injection Framework for Unity3D
MIT License
2.52k stars 362 forks source link

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

Open vargonian opened 5 years ago

vargonian commented 5 years ago

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?