Closed vander2675 closed 7 years ago
You can get a tag from context object https://github.com/AliSoftware/Dip/wiki/Dependency-container-context, thats what autowiring does under the hood.
Thanks for the quick response. Is Autowiring Constraint to an maximum number of Constructor dependencies?
yes, the constraint is not on autowiring, it is on registration methods (you can add your own but it is not advised)
Ah I see. This was my problem. I will refactor my architecture here. Thank you!
Regarding you second question - autowiring is a feature to resolve dependencies of constructor without resolving them explicitly in registered factory or manually and passing as parameters to resolve
method. So if you resolve this type with resolve
it will use autowiring. More on that in docs in wiki.
Hey, first of all: It's a really great Framework you provide. Thank you very much for it!
And to the question: Is the handing through of the tag only possible when using AutoWiring ? Or is it also possible when using registration like this:
Or do I have to register it this way?
Second question:
Is registering with :
Using AutoWiring?
Thanks very much in advance.