Skip to content

Allow to bind inline services by type and name #40469

Closed
@vudaltsov

Description

@vudaltsov
return function(ContainerConfigurator $configurator) {
    $services = $configurator->services()
        ->defaults()
        ->bind(Foo::class.' $foo', inline_service(Foo::class))
    ;
};

Currently it throws Invalid binding for service "": named arguments must start with a "$", and FQCN must map to references. Neither applies to binding "Foo $foo", while binding inline service just by name works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions