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

Introducing the new Twig Playground

I'm very excited to announce the launch of Twig Playground, a new tool that allows you to test and experiment with Twig templates in a sandbox environment. It is entirely web-based, with no backend.

Dec 26, 2024, 4:20:14 PM | Symfony
A Week of Symfony #938 (16-22 December 2024)

This week, Symfony development activity focused on fixing bugs in maintenance versions and adding new features for the upcoming Symfony 7.3 release. Meanwhile, we published blog posts about the new Tw

Dec 22, 2024, 10:20:10 AM | Symfony
New in Twig 3.15 (part 2)

In the first part of this blog post we introduced exciting new Twig features like inline comments, PHP enums support, improved operator precedence, the guard tag, and enhanced deprecation handling. Th

Dec 19, 2024, 10:30:05 AM | Symfony
Case study - Upply: The PHP advantage: How we resisted the switch to Scala, rust, or go

After a pause, we’re excited to relaunch the publication of case studies in the Symfony community. Whether you’ve tackled challenging upgrades, solved complex technical issues, or transformed your tea

Dec 18, 2024, 8:50:12 AM | Symfony
New in Twig 3.15 (part 1)

Twig 3.15 was released a few weeks ago and includes an impressive list of new features and improvements. This two-part blog post highlights the most important ones.

Inline Comments… https://symfony.c

Dec 17, 2024, 9:40:11 AM | Symfony
A Week of Symfony #937 (9-15 December 2024)

This week, Symfony 7.2.1 was released as the first maintenance version of the 7.2 branch. Meanwhile, the upcoming Symfony 7.3 version introduced a new JsonEncoder component that is 10 times faster tha

Dec 15, 2024, 9:10:06 AM | Symfony
Symfony 7.2.1 released

Symfony 7.2.1 has just been released. Here is the list of the most important changes since 7.2.0:

bug #59145 [TypeInfo] Make Type::nullable method no-op on every nullable type (@mtarld)

bug #5912

Dec 11, 2024, 12:30:06 PM | Symfony