Skip to content

Auto wiring #823

Open
Open
@sparky2708

Description

@sparky2708

Is there a way to auto-wire?

e.g.:

class B:
@Inject
def init(self, registered_class: IRegisteredClass):
...

Why do I need to specify Provider[...]. If all are wired why not just auto-wire IRegisteredClass interface to the object that is registered in some container that implements this interface?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions