Skip to content

Commit 8bdd9ab

Browse files
NeoBlackOskarStark
authored andcommitted
[Notifier] Add Seven Notifier Bridge
Seven.io is the new name of SMS77, they changed also the URL to the gateway. To reflect that change, this patch introduces the new Seven Notifier Bridge. The current SMS77 Bridge should be deprecated in another patch
1 parent 51df96e commit 8bdd9ab

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

Exception/UnsupportedSchemeException.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,10 @@ class UnsupportedSchemeException extends LogicException
216216
'class' => Bridge\Sendberry\SendberryTransportFactory::class,
217217
'package' => 'symfony/sendberry-notifier',
218218
],
219+
'sevenio' => [
220+
'class' => Bridge\Sevenio\SevenIoTransportFactory::class,
221+
'package' => 'symfony/sevenio-notifier',
222+
],
219223
'simpletextin' => [
220224
'class' => Bridge\SimpleTextin\SimpleTextinTransportFactory::class,
221225
'package' => 'symfony/simple-textin-notifier',

Tests/Exception/UnsupportedSchemeExceptionTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ public static function setUpBeforeClass(): void
7676
Bridge\RingCentral\RingCentralTransportFactory::class => false,
7777
Bridge\RocketChat\RocketChatTransportFactory::class => false,
7878
Bridge\Sendberry\SendberryTransportFactory::class => false,
79+
Bridge\Sevenio\SevenIoTransportFactory::class => false,
7980
Bridge\SimpleTextin\SimpleTextinTransportFactory::class => false,
8081
Bridge\Sinch\SinchTransportFactory::class => false,
8182
Bridge\Slack\SlackTransportFactory::class => false,
@@ -158,6 +159,7 @@ public static function messageWhereSchemeIsPartOfSchemeToPackageMapProvider(): \
158159
yield ['ringcentral', 'symfony/ring-central-notifier'];
159160
yield ['rocketchat', 'symfony/rocket-chat-notifier'];
160161
yield ['sendberry', 'symfony/sendberry-notifier'];
162+
yield ['sevenio', 'symfony/sevenio-notifier'];
161163
yield ['simpletextin', 'symfony/simple-textin-notifier'];
162164
yield ['sinch', 'symfony/sinch-notifier'];
163165
yield ['slack', 'symfony/slack-notifier'];

Transport.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ final class Transport
7777
Bridge\RingCentral\RingCentralTransportFactory::class,
7878
Bridge\RocketChat\RocketChatTransportFactory::class,
7979
Bridge\Sendberry\SendberryTransportFactory::class,
80+
Bridge\Sevenio\SevenIoTransportFactory::class,
8081
Bridge\SimpleTextin\SimpleTextinTransportFactory::class,
8182
Bridge\Sinch\SinchTransportFactory::class,
8283
Bridge\Slack\SlackTransportFactory::class,

0 commit comments

Comments
 (0)