File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -32,12 +32,16 @@ you to send messages to chat services like Slack or Telegram::
32
32
// default transport (the first one configured)
33
33
->transport('slack');
34
34
35
- $chatter->send($message);
35
+ $sentMessage = $ chatter->send($message);
36
36
37
37
// ...
38
38
}
39
39
}
40
40
41
+ The ``$sentMessage `` (instance of
42
+ :class: `Symfony\\ Component\\ Notifier\\ Message\\ SentMessage `) returned by
43
+ ``send() `` contains info about the sent message.
44
+
41
45
.. seealso ::
42
46
43
47
Read :ref: `the main Notifier guide <notifier-chatter-dsn >` to see how
@@ -46,7 +50,7 @@ you to send messages to chat services like Slack or Telegram::
46
50
Adding Interactions to a Slack Message
47
51
--------------------------------------
48
52
49
- With a Slack message, you can use the
53
+ With a Slack message, you can use the
50
54
:class: `Symfony\\ Component\\ Notifier\\ Bridge\\ Slack\\ SlackOptions ` to add
51
55
some interactive options called `Block elements `_::
52
56
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ you to send SMS messages::
14
14
15
15
// src/Controller/SecurityController.php
16
16
namespace App\Controller;
17
-
17
+
18
18
use Symfony\Component\Notifier\Message\SmsMessage;
19
19
use Symfony\Component\Notifier\TexterInterface;
20
20
use Symfony\Component\Routing\Annotation\Route;
@@ -33,12 +33,16 @@ you to send SMS messages::
33
33
'A new login was detected!'
34
34
);
35
35
36
- $texter->send($sms);
36
+ $sentMessage = $ texter->send($sms);
37
37
38
38
// ...
39
39
}
40
40
}
41
41
42
+ The ``$sentMessage `` (instance of
43
+ :class: `Symfony\\ Component\\ Notifier\\ Message\\ SentMessage `) returned by
44
+ ``send() `` contains info about the sent message.
45
+
42
46
.. seealso ::
43
47
44
48
Read :ref: `the main Notifier guide <notifier-texter-dsn >` to see how
You can’t perform that action at this time.
0 commit comments