Skip to content

auryn project views on Service Locator are different from views here, correct? #2

Description

@salcode

While reading the auryn Documentation, I noticed this blurb.

auryn is NOT a Service Locator. DO NOT turn it into one by passing the injector into your application classes. Service Locator is an anti-pattern; it hides class dependencies, makes code more difficult to maintain and makes a liar of your API! You should only use an injector for wiring together the disparate parts of your application during your bootstrap phase.

Since this project is part of Bright Nucleus Service Locator Component am I correct you disagree with this statement?

( Which I'm completely fine with, I just want to make sure I'm not missing a nuance here like when you helped me understand the difference between a Shared Instance versus a Singleton 😀 )

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions