Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions service_container/autowiring.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
Defining Services Dependencies Automatically (Autowiring)
=========================================================

Autowiring allows you to manage services in the container with minimal configuration.
It reads the type-hints on your constructor (or other methods) and automatically
passes you the correct services. Symfony's autowiring is designed to be predictable:
if it is not absolutely clear which dependency should be passed, you'll see an
actionable exception.
Autowiring allows you to manage services in the container with minimal
configuration. It reads the type-hints on your constructor (or other methods)
and automatically passes the correct services to each method. Symfony's
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"to them" ? (constructor or other methods)

autowiring is designed to be predictable: if it is not absolutely clear which
dependency should be passed, you'll see an actionable exception.

.. tip::

Expand Down