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.
Létrehozva 5y | 2020. okt. 23. 8:33:04


Jelentkezéshez jelentkezzen be

EGYÉB POSTS Ebben a csoportban

Symfony 7.2.6 released

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

bug #60288 [VarExporter] dump default value for property hooks if present (@xabbuh)

bug #60267 [C

2025. máj. 2. 12:40:05 | Symfony
Symfony 7.3.0-BETA1 released

Symfony 7.3.0-BETA1 has just been released. Here is the list of the most important changes since 7.2:

feature #60232 Add PHP config support for routing (@fabpot)

feature #60102 [HttpFoundation] A

2025. máj. 2. 12:40:04 | Symfony
SymfonyOnline June 2025 : Efficient Web Scraping with Symfony & PHP

SymfonyOnline June 2025 is almost here, starting in almost 2 months on:

June 10-11: Workshop days. It is possible to attend 1 two-day training or 2 one-day trainings. June 12-13: Online confe

2025. máj. 2. 12:40:03 | Symfony
New in Symfony 7.3: Configurable Compound Rate Limiter

Contributed by Kevin Bond in

2025. máj. 2. 10:20:09 | Symfony
Symfony 6.4.21 released

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

bug #60288 [VarExporter] dump default value for property hooks if present (@xabbuh)

bug #60268

2025. máj. 2. 10:20:08 | Symfony
New in Symfony 7.3: Extra Runtime Dot Env Files

Contributed by Nathan Page in

2025. máj. 1. 8:40:12 | Symfony
SymfonyOnline June 2025: Where Have the Women of Tech History Gone?

SymfonyOnline June 2025 is almost here, starting in almost 2 months on:

June 10-11: Workshop days. It is possible to attend 1 two-day training or 2 one-day trainings. June 12-13: Online confe

2025. ápr. 30. 14:20:02 | Symfony