Skip to content

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

@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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy