Skip to content
Permalink
Browse files

bug #31458 [TwigBundle] Fix Mailer integration in Twig (fabpot)

This PR was merged into the 4.3 branch.

Discussion
----------

[TwigBundle] Fix Mailer integration in Twig

| Q             | A
| ------------- | ---
| Branch?       | 4.3
| Bug fix?      | yes
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| BC breaks?    | no     <!-- see https://symfony.com/bc -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| Fixed tickets | #31449
| License       | MIT
| Doc PR        | n/a

<!--
Replace this notice by a short README for your feature/bugfix. This will help people
understand your PR and can be used as a start for the documentation.

Additionally (see https://symfony.com/roadmap):
 - Bug fixes must be submitted against the lowest maintained branch where they apply
   (lowest branches are regularly merged to upper ones so they get the fixes too).
 - Features and deprecations must be submitted against the master branch.
-->

Commits
-------

53b68af [TwigBundle] fixed Mailer integration in Twig
  • Loading branch information...
fabpot committed May 10, 2019
2 parents e75ed98 + 53b68af commit ae38ed80e2e6e5d8e2a854f3caf84ee8be603e82
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/Symfony/Bundle/TwigBundle/Resources/config/mailer.xml
@@ -6,8 +6,9 @@

<services>
<service id="twig.mailer.message_listener" class="Symfony\Component\Mailer\EventListener\MessageListener">
<argument />
<argument>null</argument>
<argument type="service" id="twig.mime_body_renderer" />
<tag name="kernel.event_subscriber"/>
</service>

<service id="twig.mime_body_renderer" class="Symfony\Bridge\Twig\Mime\BodyRenderer">

0 comments on commit ae38ed8

Please sign in to comment.
You can’t perform that action at this time.