-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Notifier] Added telnyx notifier bridge #38909
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
Conversation
06a2f12
to
fd68f79
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this contribution.
Don't forget to add an entry in the ChangeLog. and in UnsupportedSchemeException files
fd68f79
to
d109aa2
Compare
d109aa2
to
4325eba
Compare
src/Symfony/Component/Notifier/Bridge/Telnyx/TelnyxTransport.php
Outdated
Show resolved
Hide resolved
4325eba
to
48269b5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@krasilnikovm Thank you for your adjustments. Code looks good to me now, except the one line where sprintf
could be used as well.
I know some of the bridges got merged without tests, but I think having tests here would be really great. Do you think you could add some?
src/Symfony/Component/Notifier/Bridge/Telnyx/TelnyxTransport.php
Outdated
Show resolved
Hide resolved
Hi @jschaedl, sorry for I'm not checked other places for using sprintf , and now I'm working on writing tests but I have noticed that SmsMessage::getOptions method always returns null, symfony/src/Symfony/Component/Notifier/Message/SmsMessage.php Lines 98 to 101 in 0137609
symfony/src/Symfony/Component/Notifier/Message/SmsMessage.php Lines 28 to 37 in 0137609
Can I add initializing options in the PR or better to create separate PR? Updated |
821a6d7
to
12f35e7
Compare
src/Symfony/Component/Notifier/Bridge/Telnyx/TelnyxTransport.php
Outdated
Show resolved
Hide resolved
12f35e7
to
dde143c
Compare
|
||
public function __construct(string $phone, string $subject) | ||
public function __construct(string $phone, string $subject, MessageOptionsInterface $options = null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change should be removed and discussed in another PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR created: #39365
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like you forgot to update the src/Symfony/Component/Notifier/Exception/UnsupportedSchemeException.php
file.
src/Symfony/Component/Notifier/Bridge/Telnyx/Tests/TelnyxTransportTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/Telnyx/Tests/TelnyxTransportFactoryTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/Telnyx/TelnyxTransportFactory.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/Telnyx/TelnyxTransport.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/Telnyx/TelnyxTransport.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/Telnyx/TelnyxTransportFactory.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/Telnyx/TelnyxTransportFactory.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/Telnyx/Tests/TelnyxTransportFactoryTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/Telnyx/Tests/TelnyxTransportTest.php
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ready to merge after my comments 👍
c1b9210
to
a526e46
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is blocked until #39774 is merged!
Can you please rebase to get rid of the conflicts? Thanks |
a526e46
to
287c6d2
Compare
287c6d2
to
261cfee
Compare
@krasilnikovm I need to close this PR, because it uses your other PR [Notifier] Added ability to initialize sms options which was closed ❌ without merging. 😢 Feel free to reopen and update this PR or reopen a new one if you found another solution without the need of Thanks for your patience 🚀 |
Added telnyx notifier bridge for sending sms
https://developers.telnyx.com/docs/api/v2/messaging/Messages?lang=curl#createMessage