-
Notifications
You must be signed in to change notification settings - Fork 288
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
Circular dependency in wiring #764
Comments
I'm facing the same issue. I almost get the sense you can only inject objects that don't depend on the container (or any of their dependencies do).... but that makes it so much weaker than other DI frameworks I've used. Does anyone have some solution or another recommendation? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am facing the circular dependency issue:
print(api)
gives instance of dependency_injector.wiring.Provide instead of Apiif I add wire, it gives circular import error.
ArgsManager requires Container and Container requires ArgsManager
How to solve this ?
Originally posted by @krunaldodiya in #327 (comment)
The text was updated successfully, but these errors were encountered: