File tree 1 file changed +5
-5
lines changed
components/dependency_injection
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
.. index ::
2
2
single: DependencyInjection; Autowiring
3
3
4
- Defining Services Dependencies Automatically
5
- ============================================
4
+ Defining Services Dependencies Automatically (Autowiring)
5
+ =========================================================
6
6
7
7
.. versionadded :: 2.8
8
8
Support for autowiring services was introduced in Symfony 2.8.
@@ -76,7 +76,7 @@ service is marked as autowired:
76
76
<services >
77
77
<service id =" twitter_client" class =" AppBundle\TwitterClient" autowire =" true" />
78
78
</services >
79
- </services >
79
+ </container >
80
80
81
81
.. code-block :: php
82
82
@@ -218,7 +218,7 @@ subsystem isn't able to find itself the interface implementation to register::
218
218
<service id =" rot13_transformer" class =" AppBundle\Rot13Transformer" />
219
219
<service id =" twitter_client" class =" AppBundle\TwitterClient" autowire =" true" />
220
220
</services >
221
- </services >
221
+ </container >
222
222
223
223
.. code-block :: php
224
224
@@ -356,7 +356,7 @@ and a Twitter client using it::
356
356
<argument type =" service" id =" uppercase_rot13_transformer" />
357
357
</service >
358
358
</services >
359
- </services >
359
+ </container >
360
360
361
361
.. code-block :: php
362
362
You can’t perform that action at this time.
0 commit comments