-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[Notifier] Add from in SmsMessage and support it in bridge transports #16701
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
[Notifier] Add from in SmsMessage and support it in bridge transports #16701
Conversation
These changes look totally unrelated 🙄 |
This PR was merged into the 6.2 branch. Discussion ---------- [Notifier] Add `from` in `SmsMessage` | Q | A | ------------- | --- | Branch? | 6.1 | Bug fix? | no | New feature? | yes | Deprecations? | no | Tickets | Fix #45435 | License | MIT | Doc PR | symfony/symfony-docs#16701 [WIP] This PR allow to define `From` in `SmsMessage`. When it defined, it override default `from` in transports. ```php $sms = new SmsMessage( // the phone number to send the SMS message to '+1411111111', // the message 'A new login was detected!', // [Optional] the From SMS message, it can also be a name '+1422222222', ); // Can also be defined with setter $sms->setFrom('+1422222222'); $sentMessage = $texter->send($sms); ``` Commits ------- 21b5051 [Notifier] Add from in SmsMessage and support it in bridge transports
The related code PR was merged: symfony/symfony#45987 🎉 @alamirault would you have time to finish this PR? If you can't fix the git issues with the unrelated commits, it's OK to delete this PR and create a new one. Thanks. |
I'm not sure where I have to do changes. Is edit SmsMessage example is enough ? https://github.com/symfony/symfony-docs/blame/6.2/notifier/texters.rst#L22 (Like in PR description) ? |
44aaa9e
to
b911480
Compare
@javiereguiluz I rebased and changed documentation |
48313bc
to
d627e1c
Compare
Thanks @alamirault! |
If PR #45987 looks good. I will change docs