8000 feature #16701 [Notifier] Add from in SmsMessage and support it in br… · symfony/symfony-docs@91edb50 · GitHub
[go: up one dir, main page]

Skip to content

Commit 91edb50

Browse files
committed
feature #16701 [Notifier] Add from in SmsMessage and support it in bridge transports (alamirault)
This PR was squashed before being merged into the 6.2 branch. Discussion ---------- [Notifier] Add from in SmsMessage and support it in bridge transports If PR [#45987](symfony/symfony#45987) l 8000 ooks good. I will change docs Commits ------- d627e1c [Notifier] Add from in SmsMessage and support it in bridge transports
2 parents 6087ab6 + d627e1c commit 91edb50

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

notifier/texters.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ you to send SMS messages::
2323
// the phone number to send the SMS message to
2424
'+1411111111',
2525
// the message
26-
'A new login was detected!'
26+
'A new login was detected!',
27+
// optionally, you can override default "from" defined in transports
28+
'+1422222222',
2729
);
2830

2931
$sentMessage = $texter->send($sms);
@@ -32,6 +34,10 @@ you to send SMS messages::
3234
}
3335
}
3436

37+
.. versionadded:: 6.2
38+
39+
The 3rd argument of ``SmsMessage`` (``$from``) was introduced in Symfony 6.2.
40+
3541
The ``send()`` method returns a variable of type
3642
:class:`Symfony\\Component\\Notifier\\Message\\Sen 403F tMessage` which provides
3743
information such as the message ID and the original message contents.

0 commit comments

Comments
 (0)
0