Symfony. Introducción al componente Symfony Notifier

Envía mensajes a los usuarios empleando distintos canales de comunicación

“Channels” y “Transports”

“Channel email”

Enviando una notificación vía email

Image for post
Image for post

Enviando notificaciones a Slack

SLACK_DSN=slack://TOKEN@default?channel=CHANNEL
framework:
notifier:
chatter_transports:
slack: '%env(SLACK_DSN)%'
Image for post
Image for post
Image for post
Image for post

Bonus track: Política de notificaciones

framework:
notifier:
# ...
channel_policy:
urgent: ['chat/slack', 'email']
medium: ['email']
Image for post
Image for post

Conclusiones

Written by

Entre paseo y paseo con Simba desarrollo en Symfony y React

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store