Permalink
Browse files

bug #3504 fix include directive so that the contents are really inclu…

…ded (xabbuh)

This PR was merged into the 2.4 branch.

Discussion
----------

fix include directive so that the contents are really included

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | 2.4+
| Fixed tickets |

Commits
-------

3090cf2 fix include directive so that the contents are really included
  • Loading branch information...
weaverryan committed Feb 3, 2014
2 parents a45fee8 + 3090cf2 commit 272197be5d22e637546801f95e6c3db3e2c07f2d
Showing with 4 additions and 5 deletions.
  1. +2 −3 book/includes/_service_container_my_mailer.rst.inc
  2. +2 −2 book/service_container.rst
@@ -16,8 +16,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/dic/services
http://symfony.com/schema/dic/services/services-1.0.xsd"
>
>
<services>
<service id="my_mailer" class="Acme\HelloBundle\Mailer">
<argument>sendmail</argument>
@@ -33,4 +32,4 @@
$container->setDefinition('my_mailer', new Definition(
'Acme\HelloBundle\Mailer',
array('sendmail')
));
));
@@ -103,7 +103,7 @@ for you. In order for this to work, you must *teach* the container how to
create the ``Mailer`` service. This is done via configuration, which can
be specified in YAML, XML or PHP:
.. include includes/_service_container_my_mailer.rst.inc
.. include:: includes/_service_container_my_mailer.rst.inc
.. note::
@@ -643,7 +643,7 @@ which has a ``getMailerMethod()`` method on it, which will return a string
like ``sendmail`` based on some configuration. Remember that the first argument
to the ``my_mailer`` service is the simple string ``sendmail``:
.. include includes/_service_container_my_mailer.rst.inc
.. include:: includes/_service_container_my_mailer.rst.inc
But instead of hardcoding this, how could we get this value from the ``getMailerMethod()``
of the new ``mailer_configuration`` service? One way is to use an expression:

0 comments on commit 272197b

Please sign in to comment.