jeni-python icon indicating copy to clipboard operation
jeni-python copied to clipboard

Consider using injector constructor kwargs as values scoped to the instance.

Open groner opened this issue 9 years ago • 0 comments

We've seen how Injector.value() can be problematic, and injector already has an instance scoped values dict. But we lack an API for populating it.

Injector.sub() uses kwargs to create instance scoped values. I think it would be useful for the injector constructor to do the same.

This would enable us to use a static request injector class in our dispatch layer at MN, which would be much simpler.

groner avatar Jan 19 '16 23:01 groner