Skip to content

Commit

Permalink
Add Auto-wiring keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
theofidry committed Mar 2, 2016
1 parent a499d12 commit bfc7976
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions components/dependency_injection/autowiring.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.. index::
single: DependencyInjection; Autowiring

Defining Services Dependencies Automatically
============================================
Defining Services Dependencies Automatically (Autowiring)
=========================================================

.. versionadded:: 2.8
Support for autowiring services was introduced in Symfony 2.8.
Expand Down Expand Up @@ -76,7 +76,7 @@ service is marked as autowired:
<services>
<service id="twitter_client" class="AppBundle\TwitterClient" autowire="true" />
</services>
</services>
</container>
.. code-block:: php
Expand Down Expand Up @@ -218,7 +218,7 @@ subsystem isn't able to find itself the interface implementation to register::
<service id="rot13_transformer" class="AppBundle\Rot13Transformer" />
<service id="twitter_client" class="AppBundle\TwitterClient" autowire="true" />
</services>
</services>
</container>
.. code-block:: php
Expand Down Expand Up @@ -356,7 +356,7 @@ and a Twitter client using it::
<argument type="service" id="uppercase_rot13_transformer" />
</service>
</services>
</services>
</container>
.. code-block:: php
Expand Down

0 comments on commit bfc7976

Please sign in to comment.