Skip to content

Allow combination of splat operator and multiple services #241

@survik1

Description

@survik1

In case of dynamic service creation it would be nice to have possibility to inject all services trough splat operator.

interface IService{}
class ServiceA implements IService {}
class ServiceB implements IService {}

Autowiring both services and requiring DI to load IService will trigger Multiple services exception.
The following code should, however, be allowed

__construct(IService ...$services) {}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions