ssannandeji / Zenject-2019

Dependency Injection Framework for Unity3D
MIT License
2.53k stars 366 forks source link

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

Open vargonian opened 4 years ago

vargonian commented 4 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?