Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Should have a best practice example for conditional injection. #24

@yozo1984

Description

@yozo1984

For something like:

@Singleton
def provideProdConfiguration():
    return something

@Singleton
def provideTestConfiguration():
    return something

def configure():
  if prod:
    Injectable(provideProdConfiguration)
  else:
    Injectable(provideTestConfiguration)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions