Skip to content

Constructors are now always autowired #7436

Closed
@javiereguiluz

Description

@javiereguiluz

As of symfony/symfony#21306 the constructor is now always autowired, so there's no need to add __construct here:

services:
    Foo\Bar: { autowire: ['__construct', 'set*'] }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions