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.
Vytvorené 4y | 23. 10. 2020, 8:33:04


Ak chcete pridať komentár, prihláste sa

Ostatné príspevky v tejto skupine

New Core Team Members, 2025 Edition

A few weeks ago, I had the pleasure of announcing the formation of the Symfony UX Core Team, a dedicated group working to enhance the frontend development experience within the Symfony ecosystem. Toda

24. 2. 2025, 16:20:03 | Symfony
SymfonyLive Paris 2025 : Du lego de composants pour un bundle Gotenberg !

SymfonyLive Paris 2025, conference in French language only, will take place from March 27 to 28! The schedule is currently being revealed as we go along. More details are available here.

Al

24. 2. 2025, 13:50:07 | Symfony
A Week of Symfony #947 (17-23 February 2025)

This week, development activity focused on new security features. The upcoming Symfony 7.3 version added support for security voters to explain their vote, improved the IsGranted attribute to allow us

23. 2. 2025, 10:10:09 | Symfony
SymfonyLive Berlin 2025: Agentic Applications with Symfony

SymfonyLive Berlin 2025, conference held in English, will take place from April 1 to 4! The schedule is being revealed gradually. More details are available here.

We’re thrilled to announce

21. 2. 2025, 9:20:12 | Symfony
SymfonyLive Paris 2025 : Postgres pour vos besoins NoSQL

SymfonyLive Paris 2025, conference in French language only, will take place from March 27 to 28! The schedule is currently being revealed as we go along. More details are available here.

Al

20. 2. 2025, 10:10:13 | Symfony
SymfonyLive Berlin 2025: Asynchronous PHP

SymfonyLive Berlin 2025, conference held in English, will take place from April 1 to 4! The schedule is being revealed gradually. More details are available here.

We’re thrilled to announce

19. 2. 2025, 8:40:05 | Symfony
SymfonyLive Paris 2025 :  Le Composant Symfony Mapper

SymfonyLive Paris 2025, conference in French language only, will take place from March 27 to 28! The schedule is currently being revealed as we go along. More details are available here.

Al

18. 2. 2025, 14:10:24 | Symfony