How to access root container? #534
Unanswered
chbndrhnns
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'd like to access the root container from any subcontainer. Is there a way to do that? I am now using this approach:
But passing in
__self__
into my application and then do the lookup there feels not good. I'd prefer to keep the DIsystem out of my application.
What I am actually looking for is a way to inject the root container into all or some child containers so that I would be able to something like this (imagine bounded contexts in DDD) in
Adapter1
:Bye,
jo
Beta Was this translation helpful? Give feedback.
All reactions