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
380380 );
381381
382382 // Send the notification to the recipient
383- $sentMessage = $ notifier->send($notification, $recipient);
383+ $notifier->send($notification, $recipient);
384384
385385 // ...
386386 }
@@ -391,14 +391,6 @@ channels. The channels specify which channel (or transport) should be used
391391to send the notification. For instance, ``['email', 'sms'] `` will send
392392both an email and sms notification to the user.
393393
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-
402394The default notification also has a ``content() `` and ``emoji() `` method to
403395set the notification content and icon.
404396
You can’t perform that action at this time.
0 commit comments