Hi,
I am a big user of Dry::AutoInject and I love dependency injection.
It removes me a weight about which class use which one.
Sometime I want to use a class that will work as a layout who will collect like 3/4 classes, but as a layout, I want to choose the classes I send to is.
For the moment, I instantiate this class manually and specify the dependencies one by one.
What I would love to do is that the include Import['my_layout_class']
could look like this :
include ImportWithSpecifiedDependencies['my_layout_class' => { class_one: 'implentation_for_user' }]
So I could have somewhere else
include ImportWithSpecifiedDependencies['my_layout_class' => { class_one: 'implentation_for_admin' }]
What do you think?