Skip to content

Get rid of names in favor of types in dependency injector #618

@frolosofsky

Description

@frolosofsky

Is your feature request related to a problem? Please describe
I'm always frustrated when I see a mix of names and types in dependency injector. For example, we GetComponent by name but we register its dependencies via types. Also, some names can hide real dependency, for example it's not obvious that ActiveChain name refers to the staking::ActiveChain type.

Describe the solution you'd like
I'd like to have a clear type-based interface to work with the injector. For example, GetComponent<staking::ActiveChain>().

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomersrefactoringChanges which clean up code but don't change the user-visible behaviorstyleCode style and naming

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions