Skip to content

[DependencyInjection] Allow dumping inline services in YAML #8381

Closed
@javiereguiluz

Description

@javiereguiluz

See symfony/symfony#23855 and the example in the fixtures:

services:
    service_container:
        class: Symfony\Component\DependencyInjection\ContainerInterface
        synthetic: true
    foo:
        class: Class1
        arguments: [!service { class: Class2, arguments: [!service { class: Class2 }] }]
    Psr\Container\ContainerInterface:
        alias: service_container
        public: false
    Symfony\Component\DependencyInjection\ContainerInterface:
        alias: service_container
        public: false

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions