Skip to content

Commit b50f667

Browse files
committed
Merge branch '6.3' into 6.4
* 6.3: Update notifier.rst
2 parents db49e10 + 6adfa1d commit b50f667

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

notifier.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,13 +195,19 @@ send SMS messages::
195195
#[Route('/login/success')]
196196
public function loginSuccess(TexterInterface $texter): Response
197197
{
198+
$options = (new ProviderOptions())
199+
->setPriority('high')
200+
;
201+
198202
$sms = new SmsMessage(
199203
// the phone number to send the SMS message to
200204
'+1411111111',
201205
// the message
202206
'A new login was detected!',
203207
// optionally, you can override default "from" defined in transports
204208
'+1422222222',
209+
// you can also add options object implementing MessageOptionsInterface
210+
$options
205211
);
206212

207213
$sentMessage = $texter->send($sms);
@@ -214,6 +220,10 @@ send SMS messages::
214220

215221
The 3rd argument of ``SmsMessage`` (``$from``) was introduced in Symfony 6.2.
216222

223+
.. versionadded:: 6.3
224+
225+
The 4th argument of ``SmsMessage`` (``$options``) was introduced in Symfony 6.3.
226+
217227
The ``send()`` method returns a variable of type
218228
:class:`Symfony\\Component\\Notifier\\Message\\SentMessage` which provides
219229
information such as the message ID and the original message contents.

0 commit comments

Comments
 (0)