Skip to content

Commit 9b8ee64

Browse files
chii0815fabpot
authored andcommitted
[Notifier] Add Matrix bridge
1 parent 73d0144 commit 9b8ee64

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
@@ -148,6 +148,10 @@ class UnsupportedSchemeException extends LogicException
148148
'class' => Bridge\Mastodon\MastodonTransportFactory::class,
149149
'package' => 'symfony/mastodon-notifier',
150150
],
151+
'matrix' => [
152+
'class' => Bridge\Matrix\MatrixTransportFactory::class,
153+
'package' => 'symfony/matrix-notifier',
154+
],
151155
'mattermost' => [
152156
'class' => Bridge\Mattermost\MattermostTransportFactory::class,
153157
'package' => 'symfony/mattermost-notifier',

Tests/Exception/UnsupportedSchemeExceptionTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ public static function setUpBeforeClass(): void
5858
Bridge\Lox24\Lox24TransportFactory::class => false,
5959
Bridge\Mailjet\MailjetTransportFactory::class => false,
6060
Bridge\Mastodon\MastodonTransportFactory::class => false,
61+
Bridge\Matrix\MatrixTransportFactory::class => false,
6162
Bridge\Mattermost\MattermostTransportFactory::class => false,
6263
Bridge\Mercure\MercureTransportFactory::class => false,
6364
Bridge\MessageBird\MessageBirdTransportFactory::class => false,
@@ -155,6 +156,7 @@ public static function messageWhereSchemeIsPartOfSchemeToPackageMapProvider(): \
155156
yield ['lox24', 'symfony/lox24-notifier'];
156157
yield ['mailjet', 'symfony/mailjet-notifier'];
157158
yield ['mastodon', 'symfony/mastodon-notifier'];
159+
yield ['matrix', 'symfony/matrix-notifier'];
158160
yield ['mattermost', 'symfony/mattermost-notifier'];
159161
yield ['mercure', 'symfony/mercure-notifier'];
160162
yield ['messagebird', 'symfony/message-bird-notifier'];

Transport.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ final class Transport
6060
Bridge\Lox24\Lox24TransportFactory::class,
6161
Bridge\Mailjet\MailjetTransportFactory::class,
6262
Bridge\Mastodon\MastodonTransportFactory::class,
63+
Bridge\Matrix\MatrixTransportFactory::class,
6364
Bridge\Mattermost\MattermostTransportFactory::class,
6465
Bridge\Mercure\MercureTransportFactory::class,
6566
Bridge\MessageBird\MessageBirdTransportFactory::class,

0 commit comments

Comments
 (0)