Skip to content

Commit 27d163a

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: Update notifier.rst
2 parents 581e7a3 + b50f667 commit 27d163a

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
@@ -189,13 +189,19 @@ send SMS messages::
189189
#[Route('/login/success')]
190190
public function loginSuccess(TexterInterface $texter): Response
191191
{
192+
$options = (new ProviderOptions())
193+
->setPriority('high')
194+
;
195+
192196
$sms = new SmsMessage(
193197
// the phone number to send the SMS message to
194198
'+1411111111',
195199
// the message
196200
'A new login was detected!',
197201
// optionally, you can override default "from" defined in transports
198202
'+1422222222',
203+
// you can also add options object implementing MessageOptionsInterface
204+
$options
199205
);
200206

201207
$sentMessage = $texter->send($sms);
@@ -208,6 +214,10 @@ send SMS messages::
208214

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

217+
.. versionadded:: 6.3
218+
219+
The 4th argument of ``SmsMessage`` (``$options``) was introduced in Symfony 6.3.
220+
211221
The ``send()`` method returns a variable of type
212222
:class:`Symfony\\Component\\Notifier\\Message\\SentMessage` which provides
213223
information such as the message ID and the original message contents.

0 commit comments

Comments
 (0)