New in Symfony 5.2: Notifier improvements

http://feedproxy.google.com/~r/symfony/blog/~3/1uJcaz7EtKw/new-in-symfony-5-2-notifier-improvements

The Notifier component sends notifications via one or more channels (email, SMS and chats like Slack and Telegram). In Symfony 5.2 we’ve improved it with the following features.

Symfony profiler integration

Contributed by
Jan Schädlich
in #36479.

One of the main missing features of the Notifier component was the lack of integration with the Symfony debug toolbar and profiler. In Symfony 5.2 we’ve fixed that. First, the debug toolbar now displays the number of sent notifications and the channels used to send them:

Symfony Notifier Web Debug Toolbar

If you click on that toolbar section, you can see the new Notifier panel in the Symfony Profiler, which displays a summary of the notification activity:

Symfony Notifier Web Debug Profiler Metrics

You can also inspect the full details of all sent notifications:

Symfony Notifier Web Debug Profiler Details

Return sent messages

Contributed by
Jérémy Romey
in #36611.

In previous Symfony versions, the send() method of each notifier didn’t return anything. Starting from Symfony 5.2 they return a Symfony\Component\Notifier\Message\SentMessage object, which provides access to the original message and transport and to the ID of the sent message, making it easier to debug.

New integrations

The Notifier component already integrates with lots of third-party services, but in Symfony 5.2 we’ve added a ton of new integrations:


Sponsor the Symfony project.
Created 4y | Oct 23, 2020, 8:33:04 AM


Login to add comment

Other posts in this group

SymfonyOnline June 2024: The big upgrade. All the way up to Symfony 7 and PHP 8.3

SymfonyOnline June 2024 is in less than 2 months: on June 6-7, get ready for the impressive lineup of speakers and topics. Visit here to learn more and don't miss out on this exciting opportuni

Apr 25, 2024, 1:50:38 PM | Symfony
SymfonyOnline June 2024: Crafting Elegant Symfony Tests

SymfonyOnline June 2024 is in less than 2 months: on June 6-7, get ready for the impressive lineup of speakers and topics. Visit here to learn more and don't miss out on this exciting opportuni

Apr 23, 2024, 9:40:13 AM | Symfony
SymfonyLive Berlin 2024: Using container's features to manage complexity

SymfonyLive Berlin 2024 start in 2 months: on June 20-21, get ready for the impressive lineup of speakers and topics. Visit here to learn more and don't miss out on this exciting opportunity!

Apr 22, 2024, 1:10:20 PM | Symfony
A Week of Symfony #903 (15-21 April 2024)

This week, Symfony continued adding compatibility with the upcoming PHP 8.4 version and also focused on tweaking and polishing the new features of the upcoming Symfony 7.1 version. Meanwhile, we publi

Apr 21, 2024, 7:40:03 AM | Symfony
SymfonyOnline June 2024: How to Test an External API with 0 Mocks?

SymfonyOnline June 2024 is in less than 2 months: on June 6-7, get ready for the impressive lineup of speakers and topics. Visit here to learn more and don't miss out on this exciting opportuni

Apr 19, 2024, 2:40:02 PM | Symfony
SymfonyLive Berlin 2024 This is a test: One-click Cypress.IO E2E testing in 45 seconds

SymfonyLive Berlin 2024 start in 2 months: on June 20-21, get ready for the impressive lineup of speakers and topics. Visit here to learn more and don't miss out on this exciting opportunity!

Apr 19, 2024, 10:10:10 AM | Symfony
SymfonyOnline June 2024 - Carry out the best audit for your client

SymfonyOnline June 2024 is in less than 2 months: on June 6-7, get ready for the impressive lineup of speakers and topics. Visit here to learn more and don't miss out on this exciting opportuni

Apr 18, 2024, 3:50:12 PM | Symfony