Skip to content

[DI] Documentation for the autowire() shortcut method #7255

Closed
@xabbuh

Description

@xabbuh

The new autowire() method of the ContainerBuilder that was introduced in symfony/symfony#20648 is a shortcut for $container->setDefinition($id, (new Definition($class))->setAutowired(true)).

Metadata

Metadata

Assignees

No one assigned

    Labels

    DependencyInjectionactionableClear and specific issues ready for anyone to take them.good first issueIdeal for your first contribution! (some Symfony experience may be required)hasPRA Pull Request has already been submitted for this issue.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions