Skip to content

Generate Closures With Autowiring is Unclear About Different Attributes #18895

Closed
@miqrogroove

Description

@miqrogroove

This section of Autowiring docs needs better explanation.

https://symfony.com/doc/current/service_container/autowiring.html#generate-closures-with-autowiring

There are two different attributes that do two different things, particularly when calling the Closure of a non-shared service.

Discussion here concluded this is not a bug, yet the documentation is quite vague on this point.

symfony/symfony#51695 (comment)

Working on a PR now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DependencyInjectionhasPRA Pull Request has already been submitted for this issue.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions