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 |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
@Tishka17 i believe i just found the problem - there is seemingly no access to the correct self.component value in provide methods |
Beta Was this translation helpful? Give feedback.
-
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
Beta Was this translation helpful? Give feedback.
All reactions