Skip to content
This repository has been archived by the owner on Feb 21, 2020. It is now read-only.

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

Open
groner opened this issue Jan 19, 2016 · 0 comments

Comments

@groner
Copy link
Collaborator

groner commented Jan 19, 2016

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant