File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -380,7 +380,7 @@ To send a notification, autowire the
380
380
);
381
381
382
382
// Send the notification to the recipient
383
- $sentMessage = $ notifier->send($notification, $recipient);
383
+ $notifier->send($notification, $recipient);
384
384
385
385
// ...
386
386
}
@@ -391,14 +391,6 @@ channels. The channels specify which channel (or transport) should be used
391
391
to send the notification. For instance, ``['email', 'sms'] `` will send
392
392
both an email and sms notification to the user.
393
393
394
- The ``send() `` method used to send the notification returns a variable of type
395
- :class: `Symfony\\ Component\\ Notifier\\ Message\\ SentMessage ` which provides
396
- information such as the message ID and the original message contents.
397
-
398
- .. versionadded :: 5.2
399
-
400
- The ``SentMessage `` class was introduced in Symfony 5.2.
401
-
402
394
The default notification also has a ``content() `` and ``emoji() `` method to
403
395
set the notification content and icon.
404
396
You can’t perform that action at this time.
0 commit comments