-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Notifier] add support for smsapi-notifier #36940
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
Since this is a new feature, can you please rebase to target master? |
ed8ac49
to
f64f197
Compare
ok, done I create also a recipe PR here: symfony/recipes#776 |
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.
The code should be part of the PR. Can you add it here?
@@ -50,6 +50,10 @@ | |||
<tag name="texter.transport_factory" /> | |||
</service> | |||
|
|||
<service id="notifier.transport_factory.smsapi" class="Symfony\Component\Notifier\Bridge\Smsapi\SmsapiTransportFactory" parent="notifier.transport_factory.abstract"> | |||
<tag name="texter.transport_factory" /> | |||
</service> |
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.
Can you move it to the new PHP config file?
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.
Yes, I've done
05f9beb
to
85a578e
Compare
You should rebase to get rid of the merge commit. |
@@ -0,0 +1,3 @@ | |||
/Tests export-ignore | |||
/phpunit.xml.dist export-ignore | |||
/.gitignore export-ignore |
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.
missing new line.
return $message instanceof SmsMessage; | ||
} | ||
|
||
protected function doSend(MessageInterface $message): void |
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.
As of 5.2, you must return a SentMessage
instance.
$port = $dsn->getPort(); | ||
|
||
if (!$authToken) { | ||
throw new IncompleteDsnException('Missing path (maybe you haven\'t update the DSN when upgrading from 5.0).', $dsn->getOriginalDsn()); |
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.
I think this is a copy/paste that should be removed as there is no upgrade here as the provider is new.
45990af
to
b1c7e5a
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.
LGTM. Can you rebase to get rid of the merge commit?
Can you also fix issues reported by fabbot (please, ignore the error message suggestion as this is a false positive)? |
bfd102a
to
91c2530
Compare
Thank you @szepczynski. |
Hi,
I've created integration to notifier to support polish sms operator - smsapi.pl
Here is smsapi-notifier integration: https://github.com/szepczynski/smsapi-notifier. Can you grab this code and make as symfony/smsapi-notifier?
This PR includes changes in notifier and framework-bundle to support smsapi transport as well as other included in notifier component.
Could someone integrate this into notifier component?