Binding identifiers #84
Closed
KurbanismailovZaur
started this conversation in
Ideas
Replies: 1 comment
-
I dont plan to add this feature as it goes against the core of Reflex, being minimal. Also imho having to use IDs to differentiate between contracts its a code smell and its called Primitive Obsession. |
Beta Was this translation helpful? Give feedback.
0 replies
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! It would be great if Reflex supported identifiers to accurately link bindings. For example, if I have two bindings on the string type, they will both be injected into any string with the Inject attribute.
Where an object needs a string, an injection error will occur, since both previous bindings will work and their results will be combined into a collection.
It would be great to be able to specify exactly where we want to attach the binding.
So, after clarification, we can use the Inject attribute as follows.
I think this is a very necessary feature for flexible organization of dependency injection.
Beta Was this translation helpful? Give feedback.
All reactions