dynamic component provider - per component consistent providing of attributes #258
Replies: 5 comments
|
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 |
|
|
|
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 |
|
@Tishka17 i believe i just found the problem - there is seemingly no access to the correct self.component value in provide methods |
Uh oh!
There was an error while loading. Please reload this page.
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
All reactions