Skip to content

[Mailer] Improve the warning about signing messages in a listener #18296

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 9, 2023

Conversation

MatTheCat
Copy link
Contributor

@MatTheCat MatTheCat commented May 8, 2023

Fixes symfony/symfony#50254

Following the code samples to sign/encrypt messages won’t work using TemplatedEmail, because these are rendered on MessageEvent. It seems more logical to warn about this in the Signing and Encrypting Messages section rather than Mailer Events.

(Failures unrelated.)

@MatTheCat MatTheCat force-pushed the sign-templated-email branch from 425af45 to e45f6e9 Compare May 8, 2023 12:25
@javiereguiluz javiereguiluz merged commit f5ba10d into symfony:5.4 May 9, 2023
@javiereguiluz
Copy link
Member

Mathieu, thanks for this. I agree it's better to display this warning as early as possible. We did some tweaks while merging, but the essence of your contribution remained. Thanks!

@MatTheCat MatTheCat deleted the sign-templated-email branch May 9, 2023 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants