Skip to content

Wrong documentation for the DI component #4211

Closed
@stof

Description

@stof

The doc of the DI component shows the syntax to reference services in parameters: http://symfony.com/doc/current/components/dependency_injection/parameters.html#syntax-for-referencing-services

However, this does not work. Referencing services in parameters is impossible (parameters are scalars or arrays only, while services are object). Referencing services with such syntax works for arguments

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