8lines/sylius-notification-plugin-ovh-cloud-adapter

Sylius 通知插件 Ovh 云适配器

安装: 0

依赖者: 0

建议者: 0

安全性: 0

星标: 0

关注者: 2

分支: 0

开放问题: 0

类型:sylius-notification-plugin-adapter

1.0 2024-04-12 15:08 UTC

This package is auto-updated.

Last update: 2024-09-12 16:34:42 UTC


README

8lines

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 通知通道。在创建通知时,您可以指定一个额外的选项

  • 发送者电话号码 - 用于发送通知的电话号码。