Skip to content

Commit bfc7976

Browse files
committed
Add Auto-wiring keyword
1 parent a499d12 commit bfc7976

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

components/dependency_injection/autowiring.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.. index::
22
single: DependencyInjection; Autowiring
33

4-
Defining Services Dependencies Automatically
5-
============================================
4+
Defining Services Dependencies Automatically (Autowiring)
5+
=========================================================
66

77
.. versionadded:: 2.8
88
Support for autowiring services was introduced in Symfony 2.8.
@@ -76,7 +76,7 @@ service is marked as autowired:
7676
<services>
7777
<service id="twitter_client" class="AppBundle\TwitterClient" autowire="true" />
7878
</services>
79-
</services>
79+
</container>
8080
8181
.. code-block:: php
8282
@@ -218,7 +218,7 @@ subsystem isn't able to find itself the interface implementation to register::
218218
<service id="rot13_transformer" class="AppBundle\Rot13Transformer" />
219219
<service id="twitter_client" class="AppBundle\TwitterClient" autowire="true" />
220220
</services>
221-
</services>
221+
</container>
222222
223223
.. code-block:: php
224224
@@ -356,7 +356,7 @@ and a Twitter client using it::
356356
<argument type="service" id="uppercase_rot13_transformer" />
357357
</service>
358358
</services>
359-
</services>
359+
</container>
360360
361361
.. code-block:: php
362362

0 commit comments

Comments
 (0)
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