Skip to content

Commit 272197b

Browse files
committed
bug symfony#3504 fix include directive so that the contents are really included (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
2 parents a45fee8 + 3090cf2 commit 272197b

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

book/includes/_service_container_my_mailer.rst.inc

+2-3
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1717
xsi:schemaLocation="http://symfony.com/schema/dic/services
1818
http://symfony.com/schema/dic/services/services-1.0.xsd"
19-
>
20-
19+
>
2120
<services>
2221
<service id="my_mailer" class="Acme\HelloBundle\Mailer">
2322
<argument>sendmail</argument>
@@ -33,4 +32,4 @@
3332
$container->setDefinition('my_mailer', new Definition(
3433
'Acme\HelloBundle\Mailer',
3534
array('sendmail')
36-
));
35+
));

book/service_container.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ for you. In order for this to work, you must *teach* the container how to
103103
create the ``Mailer`` service. This is done via configuration, which can
104104
be specified in YAML, XML or PHP:
105105

106-
.. include includes/_service_container_my_mailer.rst.inc
106+
.. include:: includes/_service_container_my_mailer.rst.inc
107107

108108
.. note::
109109

@@ -643,7 +643,7 @@ which has a ``getMailerMethod()`` method on it, which will return a string
643643
like ``sendmail`` based on some configuration. Remember that the first argument
644644
to the ``my_mailer`` service is the simple string ``sendmail``:
645645

646-
.. include includes/_service_container_my_mailer.rst.inc
646+
.. include:: includes/_service_container_my_mailer.rst.inc
647647

648648
But instead of hardcoding this, how could we get this value from the ``getMailerMethod()``
649649
of the new ``mailer_configuration`` service? One way is to use an expression:

0 commit comments

Comments
 (0)