Skip to content

Commit aece272

Browse files
committed
minor #14647 [Notifier] Update information for slack on actual implementation (malteschlueter)
This PR was merged into the 5.2 branch. Discussion ---------- [Notifier] Update information for slack on actual implementation The documentation wasn't updated after doing BC in the notifier component in slack. See https://github.com/symfony/symfony/blob/5.2/src/Symfony/Component/Notifier/Bridge/Slack/CHANGELOG.md Commits ------- 3c48f68 [Notifier] Update information for slack on actual implementation
2 parents 77f1362 + 3c48f68 commit aece272

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

notifier.rst

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -145,29 +145,26 @@ GoogleChat ``symfony/google-chat-notifier`` ``googlechat://ACCESS_KEY:ACCESS_T
145145
LinkedIn ``symfony/linked-in-notifier`` ``linkedin://TOKEN:USER_ID@default``
146146
Mattermost ``symfony/mattermost-notifier`` ``mattermost://TOKEN@ENDPOINT?channel=CHANNEL``
147147
RocketChat ``symfony/rocket-chat-notifier`` ``rocketchat://TOKEN@ENDPOINT?channel=CHANNEL``
148-
Slack ``symfony/slack-notifier`` ``slack://default/ID``
148+
Slack ``symfony/slack-notifier`` ``slack://TOKEN@default?channel=CHANNEL``
149149
Telegram ``symfony/telegram-notifier`` ``telegram://TOKEN@default?channel=CHAT_ID``
150150
Zulip ``symfony/zulip-notifier`` ``zulip://EMAIL:APIKEY@ENDPOINT?channel=CHANNEL``
151151
========== ================================ ===========================================================================
152152

153153
.. versionadded:: 5.1
154154

155-
The Mattermost and RocketChat integrations were introduced in Symfony
156-
5.1. The Slack DSN changed in Symfony 5.1 to use Slack Incoming
157-
Webhooks instead of legacy tokens.
155+
The Mattermost and RocketChat integrations were introduced in Symfony 5.1.
158156

159157
.. versionadded:: 5.2
160158

161159
The GoogleChat, LinkedIn, Zulip and Discord integrations were introduced in Symfony 5.2.
160+
The Slack DSN changed in Symfony 5.2 to use Slack Web API again same as in 5.0.
162161

163162
Chatters are configured using the ``chatter_transports`` setting:
164163

165164
.. code-block:: bash
166165
167166
# .env
168-
SLACK_DSN=slack://default/ID
169-
# If your slack webhook looks like "https://hooks.slack.com/services/XXXXXXXXX/XXXXXXXXX/XXXXXXXXXXXXXXXXXXXXXXXX" then use:
170-
SLACK_DSN=slack://default/XXXXXXXXX/XXXXXXXXX/XXXXXXXXXXXXXXXXXXXXXXXX
167+
SLACK_DSN=slack://TOKEN@default?channel=CHANNEL
171168
172169
.. configuration-block::
173170

0 commit comments

Comments
 (0)