Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbfc7976

Browse files
committed
Add Auto-wiring keyword
1 parenta499d12 commitbfc7976

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
<serviceid="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
<serviceid="rot13_transformer"class="AppBundle\Rot13Transformer" />
219219
<serviceid="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
<argumenttype="service"id="uppercase_rot13_transformer" />
357357
</service>
358358
</services>
359-
</services>
359+
</container>
360360
361361
..code-block::php
362362

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp