Skip to content

Commit 7bbfe94

Browse files
authored
Remove SentMessage paragraph
The Notifier's `send` method does not return a `SentMessage` object: https://github.com/symfony/symfony/blob/5.2/src/Symfony/Component/Notifier/NotifierInterface.php#L26 Only the Chatter and Texter classes `send` methods returns a `SendMessage`.
1 parent 4ec9c1f commit 7bbfe94

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

notifier.rst

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff 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
391391
to send the notification. For instance, ``['email', 'sms']`` will send
392392
both 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-
402394
The default notification also has a ``content()`` and ``emoji()`` method to
403395
set the notification content and icon.
404396

0 commit comments

Comments
 (0)