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.
Établi 4y | 23 oct. 2020 à 08:33:04


Connectez-vous pour ajouter un commentaire

Autres messages de ce groupe

A Week of Symfony #939 (23-29 December 2024)

This week, we launched the new Twig playground, a tool that lets you test and experiment with Twig features in a safe, sandboxed environment. While Symfony development activity was lighter than usual

29 déc. 2024 à 11:30:09 | Symfony
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.

26 déc. 2024 à 16:20:14 | 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

22 déc. 2024 à 10:20:10 | 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

19 déc. 2024 à 10:30:05 | 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

18 déc. 2024 à 08:50:12 | 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

17 déc. 2024 à 09:40:11 | 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

15 déc. 2024 à 09:10:06 | Symfony