Skip to content

Commit 159e058

Browse files
Merge branch '5.4' into 6.0
* 5.4: (21 commits) Backport type fixes [Messenger] Added StopWorkerException [Workflown] Add support for getting updated context after a transition Fix CS fix annot Backport type fixes Fix CS Avoid triggering the autoloader in Deprecation::isLegacy() fix markdown markup Backport type fixes [TwigBundle] Improve comment on error silencing [SecurityBundle] Fix wrongly inverted condition [Notifier] Add MessageMedia Bridge uzb translation [DependencyInjection] Fix doc blocks [DependencyInjection] Turn $defaultDeprecationTemplate into a constant [SecurityBundle] Hide Security item if no firewall matched [GHA] restore phpunit-bridge job rethrow caught exception [Form] better form doc types to support static analysis ...
2 parents 0d6dba6 + 68b7673 commit 159e058

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

Exception/UnsupportedSchemeException.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ class UnsupportedSchemeException extends LogicException
9292
'class' => Bridge\MessageBird\MessageBirdTransportFactory::class,
9393
'package' => 'symfony/message-bird-notifier',
9494
],
95+
'messagemedia' => [
96+
'class' => Bridge\MessageMedia\MessageMediaTransportFactory::class,
97+
'package' => 'symfony/message-media-notifier',
98+
],
9599
'microsoftteams' => [
96100
'class' => Bridge\MicrosoftTeams\MicrosoftTeamsTransportFactory::class,
97101
'package' => 'symfony/microsoft-teams-notifier',

Tests/Exception/UnsupportedSchemeExceptionTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
use Symfony\Component\Notifier\Bridge\Mattermost\MattermostTransportFactory;
3232
use Symfony\Component\Notifier\Bridge\Mercure\MercureTransportFactory;
3333
use Symfony\Component\Notifier\Bridge\MessageBird\MessageBirdTransportFactory;
34+
use Symfony\Component\Notifier\Bridge\MessageMedia\MessageMediaTransportFactory;
3435
use Symfony\Component\Notifier\Bridge\MicrosoftTeams\MicrosoftTeamsTransportFactory;
3536
use Symfony\Component\Notifier\Bridge\Mobyt\MobytTransportFactory;
3637
use Symfony\Component\Notifier\Bridge\Nexmo\NexmoTransportFactory;
@@ -77,6 +78,7 @@ public static function setUpBeforeClass(): void
7778
MattermostTransportFactory::class => false,
7879
MercureTransportFactory::class => false,
7980
MessageBirdTransportFactory::class => false,
81+
MessageMediaTransportFactory::class => false,
8082
MicrosoftTeamsTransportFactory::class => false,
8183
MobytTransportFactory::class => false,
8284
NexmoTransportFactory::class => false,
@@ -129,6 +131,7 @@ public function messageWhereSchemeIsPartOfSchemeToPackageMapProvider(): \Generat
129131
yield ['mattermost', 'symfony/mattermost-notifier'];
130132
yield ['mercure', 'symfony/mercure-notifier'];
131133
yield ['messagebird', 'symfony/message-bird-notifier'];
134+
yield ['messagemedia', 'symfony/message-media-notifier'];
132135
yield ['microsoftteams', 'symfony/microsoft-teams-notifier'];
133136
yield ['mobyt', 'symfony/mobyt-notifier'];
134137
yield ['nexmo', 'symfony/nexmo-notifier'];

Transport.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
use Symfony\Component\Notifier\Bridge\LightSms\LightSmsTransportFactory;
2525
use Symfony\Component\Notifier\Bridge\Mattermost\MattermostTransportFactory;
2626
use Symfony\Component\Notifier\Bridge\MessageBird\MessageBirdTransportFactory;
27+
use Symfony\Component\Notifier\Bridge\MessageMedia\MessageMediaTransportFactory;
2728
use Symfony\Component\Notifier\Bridge\MicrosoftTeams\MicrosoftTeamsTransport;
2829
use Symfony\Component\Notifier\Bridge\Mobyt\MobytTransportFactory;
2930
use Symfony\Component\Notifier\Bridge\Nexmo\NexmoTransportFactory;
@@ -69,6 +70,7 @@ class Transport
6970
LightSmsTransportFactory::class,
7071
MattermostTransportFactory::class,
7172
MessageBirdTransportFactory::class,
73+
MessageMediaTransportFactory::class,
7274
MicrosoftTeamsTransport::class,
7375
MobytTransportFactory::class,
7476
NexmoTransportFactory::class,

0 commit comments

Comments
 (0)