Skip to content

[DI] Parent service when overriding #28308

@Seb33300

Description

@Seb33300

I am trying to override a service from a bundle and keep argument definition of the original service.

This seems to make an infinite loop (PHP Fatal error: Allowed memory size of...):

bundle.service.id:
    class: App\Service\ServiceClass
    parent: 'bundle.service.id'

Using decorates, everything works fine:

App\Service\ServiceClass:
    decorates: 'bundle.service.id'
    parent: 'bundle.service.id'

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