Skip to content

question: cannot upgrade to 0.10.0 due to @Service() being mandatory #216

@theodorDiaconu

Description

@theodorDiaconu

Description

class A {}
container.get(A); // now errors out because container wasn't set, or it doesn't have @Service()

@Service()
class Base {}

class Sub extends Base {}
container.get(Sub); // now errors out because container wasn't set, or it doesn't have @Service()

Is there any reason why we don't allow like in 0.8.0 ability to instantiate a class without the @Service part ?

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