8000 [Dependency Injection] The service inheritance resolution does not detect circular references · Issue #28312 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
[Dependency Injection] The service inheritance resolution does not detect circular references #28312
Closed
@stof

Description

@stof

Symfony version(s) affected: all

Description
When a ChildDefinition references itself as parent (or as ancestor in case of longer cycle), an infinite loop happens in the resolution logic.

How to reproduce
see #28308

Possible Solution
Such loops should be detected and trigger a proper exception instead (like circular references between services in arguments)

Metadata

Metadata

Assignees

No one assigned

    Labels

    DXDX = Developer eXperience (anything that improves the experience of using Symfony)DependencyInjectionHelp wantedIssues and PRs which are looking for volunteers to complete them.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0