8lines / sylius-notification-plugin-ovh-cloud-adapter
Sylius 通知插件 Ovh 云适配器
1.0
2024-04-12 15:08 UTC
Requires
- php: >=8.0
- 8lines/sylius-notification-plugin: ^1.0
- symfony/ovh-cloud-notifier: ^6.0
README
SyliusNotificationPlugin
Ovh Cloud 通知通道适配器
目录
概述
此包是 SyliusNotificationPlugin 的适配器,允许您将通知发送到 Ovh Cloud。
安装
要安装适配器,请运行以下命令
composer require 8lines/slack-notification-plugin-ovh-cloud-adapter
然后配置 Ovh Cloud Notifier 并将以下变量添加到您的 .env
文件中
OVHCLOUD_DSN=ovhcloud://APPLICATION_KEY:APPLICATION_SECRET@default?consumer_key=CONSUMER_KEY&service_name=SERVICE_NAME&sender=SENDER&no_stop_clause=NO_STOP_CLAUSE
最后,将以下配置添加到您的 config/packages/notifier.yaml
文件中
framework: notifier: texter_transports: ovhcloud: '%env(OVHCLOUD_DSN)%'
用法
安装完成后,您可以在应用程序中使用 Ovh Cloud 通知通道。在创建通知时,您可以指定一个额外的选项
发送者电话号码
- 用于发送通知的电话号码。