Replies: 1 comment 1 reply
-
Hi, @JCHacking )
P.S. I'm personally using one container for all application and this works well and its easy to manage. We have big containers with 50+ dependencies |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Good morning, I had a question about my application design and the use of that_depends.
If I have the following files (Simplify example):
A circular import is generated, because when importing CustomerContainer, it needs to import Container, and Container needs to import CustomerContainer.
The idea I had was to have one container per feature, and then the generic container with the engine, session, settings, etc. and before starting the server initialize all of them.
As I see in the documentation it is mentioned that starting CustomerContainer will start Container, but for multiples will it work? This would generate several singletons in each container?
Wouldn't it be better to approach a container inside a container as a dependency-injector with providers.Container?
Am I doing something wrong? How can I avoid this Circular import problem?
Thanks!!!
Beta Was this translation helpful? Give feedback.
All reactions