Skip to content

Warn on usage of ChildSingleton inside of singletons #27

Open
@tessig

Description

If a binding is declared as dingo.ChildSingleton, it has different instances for each area.
If a dingo.Singleton gets a dingo.ChildSingleton via injection, it is unclear from which area the instance will come and can lead to unwanted behaviour.

We should declare this as misusage of the ChildSingleton pattern and at least warn the user.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions