Skip to content

[Notifier] Remove SentMessage paragraph #15131

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 24, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions notifier.rst
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ To send a notification, autowire the
);

// Send the notification to the recipient
$sentMessage = $notifier->send($notification, $recipient);
$notifier->send($notification, $recipient);

// ...
}
Expand All @@ -391,14 +391,6 @@ channels. The channels specify which channel (or transport) should be used
to send the notification. For instance, ``['email', 'sms']`` will send
both an email and sms notification to the user.

The ``send()`` method used to send the notification returns a variable of type
:class:`Symfony\\Component\\Notifier\\Message\\SentMessage` which provides
information such as the message ID and the original message contents.

.. versionadded:: 5.2

The ``SentMessage`` class was introduced in Symfony 5.2.

The default notification also has a ``content()`` and ``emoji()`` method to
set the notification content and icon.

Expand Down