Skip to content

The scope is not inherited from the parent service #4620

Closed
@stof

Description

@stof

when defining a service with a DefinitionDecorator (parent="acme_demo.foo" in XML), the scope is not inherited, which causes issues if the parent definition defines the scope as request and a dependency on the request. Currently, the dependency will be inherited but not the scope, causing a ScopeWideningInjectionException if you don't redeclare the request scope on the child service.
/cc @schmittjoh

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