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

Appearance settings

Commit 28082dc

Browse filesBrowse files
committed
minor #6323 [DependencyInjection] Add Autowiring keyword (theofidry)
This PR was merged into the 2.8 branch. Discussion ---------- [DependencyInjection] Add Autowiring keyword Add the autowiring keyword: although unfamiliar too many, `autowiring` is still the word being used in the doc and also in the service configuration. In other words, even though not very descriptive at first, it is *the* keyword to describe this feature. As a result, it should appear in the title to make it more searchable. Also a fix in the XML config. ~~I'm also experimenting an issue with the doc block (you can see `configuraiton-block` and the code blocks are indented as comments), but unsure of what the issue actually is:~~ <img width="754" alt="screen shot 2016-03-02 at 20 10 06" src="https://cloud.githubusercontent.com/assets/5175937/13473782/cde4ad8e-e0b2-11e5-934a-0aaf145d6fb0.png"> [Page on platform.sh](http://pr-6323-6qmocelev2lwe.eu.platform.sh/components/dependency_injection/autowiring.html) Commits ------- bfc7976 Add Auto-wiring keyword
2 parents e29233c + bfc7976 commit 28082dc
Copy full SHA for 28082dc

File tree

Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed

‎components/dependency_injection/autowiring.rst

Copy file name to clipboardExpand all lines: components/dependency_injection/autowiring.rst
+5-5Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.