mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Added detailed instructions to configure the Symfony Notifier component correctly, emphasizing proper setup for SMS providers like OVHcloud. Clarified removal of legacy configurations and included examples for both utilizing and replacing the added configuration.
2.2 KiB
2.2 KiB
v3.7.0 - 2025-01-21
Feature
- Use the Notifier component from Symfony to sens short messages (SMS). This allow to use more provider.
Fixed
- (#348) [export] Fix aggregation of referrer's scope and job: fix the date range comparison
Warning on configuration of Notifier component
If installed in an symfony app where the recipes are activated, this configuration should be added automatically:
framework:
notifier:
chatter_transports:
texter_transports:
ovhcloud: '%env(OVHCLOUD_DSN)%'
channel_policy:
# use chat/slack, chat/telegram, sms/twilio or sms/nexmo
urgent: ['email']
high: ['email']
medium: ['email']
low: ['email']
admin_recipients:
- { email: admin@example.com }
Actually, you should either:
- remove the configuration of ovhcloud added by the recipe
- or remove the previous configuration of chill, to avoid keeping legacy configuration
Remove the added configuration and keep the legacy configuration
To remove the configuration:
framework:
notifier:
chatter_transports:
texter_transports:
- ovhcloud: '%env(OVHCLOUD_DSN)%'
In that case, the previous configuration, which was stored under the chill_main.short_messages.dsn
will be reconfigured into the Notifier component's configuration.
Properly configure SMS
You can also properly configure it, as described in the OVH cloud provider repository (where the scheme is ovhcloud
):
NOTE: You have access to all notifier available with the Notifier component. You are not restricted to use OVH as a provider.
framework:
notifier:
chatter_transports:
texter_transports:
+ ovhcloud: '%env(OVHCLOUD_DSN)%' # this value should be located in a variable, and have `ovhcloud://` as a scheme
chill_main:
- short_messages:
- dsn: '%env(string:SHORT_MESSAGE_DSN)%'