Skip to content
This repository was archived by the owner on Feb 21, 2020. It is now read-only.
This repository was 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

Description

@groner

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions