Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[DI] Custom service definition classes are not supported #20608

Closed
@kiler129

Description

@kiler129

Commit symfony/dependency-injection@ec7e70f by @nicolas-grekas introduced additional check, which from my understanding should prevent adding DefinitionDecorator services definitions. However the way this bug was fixed also breaks all implementations where Definition is extended by custom class. The example use case in my code is adding some strict checks for parameters of service.

In my opinion it should specifically check for DefinitionDecorator.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions