Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ae38ed8

Browse files
committed
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
2 parents e75ed98 + 53b68af commit ae38ed8

File tree

1 file changed

+2
-1
lines changed
  • src/Symfony/Bundle/TwigBundle/Resources/config

1 file changed

+2
-1
lines changed

src/Symfony/Bundle/TwigBundle/Resources/config/mailer.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66

77
<services>
88
<service id="twig.mailer.message_listener" class="Symfony\Component\Mailer\EventListener\MessageListener">
9-
<argument />
9+
<argument>null</argument>
1010
<argument type="service" id="twig.mime_body_renderer" />
11+
<tag name="kernel.event_subscriber"/>
1112
</service>
1213

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

0 commit comments

Comments
 (0)