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

Skip to content

Commit df1cf19

Browse files
bug #42771 [FrameworkBundle] Match 5.3 and 5.1 mailer configuration (wizardz)
This PR was submitted for the 5.4 branch but it was merged into the 5.3 branch instead. Discussion ---------- [FrameworkBundle] Match 5.3 and 5.1 mailer configuration | Q | A | ------------- | --- | Branch? | 5.3 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #39511 | License | MIT | Doc PR | Looks like the listener has been in the main config file in 5.1 branch but has not been moved to 5.2 branch during the refactoring. Commits ------- 6214f3a Match 5.1 mailer configuration
2 parents 99290c6 + 6214f3a commit df1cf19

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Symfony/Bundle/FrameworkBundle/Resources/config/mailer.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,9 @@
7373
->tag('kernel.event_subscriber')
7474
->tag('kernel.reset', ['method' => 'reset'])
7575
->deprecate('symfony/framework-bundle', '5.2', 'The "%service_id%" service is deprecated, use "mailer.message_logger_listener" instead.')
76+
77+
->set('mailer.message_logger_listener', MessageLoggerListener::class)
78+
->tag('kernel.event_subscriber')
79+
->tag('kernel.reset', ['method' => 'reset'])
7680
;
7781
};

src/Symfony/Bundle/FrameworkBundle/Resources/config/mailer_debug.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,5 @@
2424
'template' => '@WebProfiler/Collector/mailer.html.twig',
2525
'id' => 'mailer',
2626
])
27-
28-
->set('mailer.message_logger_listener', MessageLoggerListener::class)
29-
->tag('kernel.event_subscriber')
30-
->tag('kernel.reset', ['method' => 'reset'])
3127
;
3228
};

0 commit comments

Comments
 (0)