8lines/sylius-notification-plugin-slack-adapter

适用于Sylius通知插件的Slack适配器

安装次数: 2

依赖: 0

建议者: 0

安全性: 0

星标: 0

关注者: 2

分支: 0

开放问题: 0

类型:sylius-notification-plugin-adapter

1.0.1 2024-04-13 11:39 UTC

This package is auto-updated.

Last update: 2024-09-13 12:33:51 UTC


README

8lines

SyliusNotificationPlugin

Slack通知通道适配器

目录

概述

此包是SyliusNotificationPlugin的适配器,允许您向Slack发送通知。

安装

要安装适配器,您需要运行以下命令

composer require 8lines/sylius-notification-plugin-slack-adapter

然后配置Slack Notifier并在您的.env文件中添加以下变量

SLACK_DSN=slack://TOKEN@default?channel=CHANNEL

最后,将以下配置添加到您的config/packages/notifier.yaml文件中

framework:
  notifier:
    chatter_transports:
      slack: '%env(SLACK_DSN)%'

用法

安装完成后,您可以在应用程序中使用Slack通知通道。在创建通知期间,您可以指定一个额外的选项

  • recipient - 接收通知的通道。它可以是通道名称或通道ID。如果未指定,通知将发送到默认通道。