Closed RonnyPfannschmidt closed 1 month ago
You can inherit from BaseProvider and make your own login on filling lists inside it
I saw how providerwrapper is implemented and off hand its not clear to me how to propperly map the component of Depend objects
As looks to me like component is taken from the Provider unless i manually create All components in the dependencies
Using providerwrapper may be the most prachical solutikn for now
Component
from factory is used when it is not set explicitly in dependency. But, if you are creating new BaseProvider from existing Provider
you can use with_component
method on each factory to fill it. It is a bit more complicated on decorators and aliases, but not very much. I guess we can extend their API adding same method.
for my immediate needs, im under the impression, using ProviderWrapper is a more sensible approach as starting point
as there is a need to replicate all providers/dependency keys its much better to make instances per component
in a Application framework im working on i want to migrate towards using dishka to provide data of plugins
however instead of having something like
i want to use something more like
if necessary i can extract a more complete example to demonstrate the point