Skip to content

Commit

Permalink
Extend Exception, Transport and Test for Novu. Refs: symfony#50414
Browse files Browse the repository at this point in the history
  • Loading branch information
wouter-toppy committed Jun 15, 2023
1 parent 72a702c commit 05c57e2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,10 @@ class UnsupportedSchemeException extends LogicException
'class' => Bridge\Mobyt\MobytTransportFactory::class,
'package' => 'symfony/mobyt-notifier',
],
'novu' => [
'class' => Bridge\Novu\NovuTransportFactory::class,
'package' => 'symfony/novu-notifier',
],
'octopush' => [
'class' => Bridge\Octopush\OctopushTransportFactory::class,
'package' => 'symfony/octopush-notifier',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public static function setUpBeforeClass(): void
Bridge\MessageMedia\MessageMediaTransportFactory::class => false,
Bridge\MicrosoftTeams\MicrosoftTeamsTransportFactory::class => false,
Bridge\Mobyt\MobytTransportFactory::class => false,
Bridge\Novu\NovuTransportFactory::class => false,
Bridge\Octopush\OctopushTransportFactory::class => false,
Bridge\OneSignal\OneSignalTransportFactory::class => false,
Bridge\OrangeSms\OrangeSmsTransportFactory::class => false,
Expand Down Expand Up @@ -138,6 +139,7 @@ public static function messageWhereSchemeIsPartOfSchemeToPackageMapProvider(): \
yield ['messagemedia', 'symfony/message-media-notifier'];
yield ['microsoftteams', 'symfony/microsoft-teams-notifier'];
yield ['mobyt', 'symfony/mobyt-notifier'];
yield ['novu', 'symfony/novu-notifier'];
yield ['octopush', 'symfony/octopush-notifier'];
yield ['onesignal', 'symfony/one-signal-notifier'];
yield ['ovhcloud', 'symfony/ovh-cloud-notifier'];
Expand Down
1 change: 1 addition & 0 deletions src/Symfony/Component/Notifier/Transport.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ final class Transport
Bridge\MessageMedia\MessageMediaTransportFactory::class,
Bridge\MicrosoftTeams\MicrosoftTeamsTransportFactory::class,
Bridge\Mobyt\MobytTransportFactory::class,
Bridge\Novu\NovuTransportFactory::class,
Bridge\Octopush\OctopushTransportFactory::class,
Bridge\OneSignal\OneSignalTransportFactory::class,
Bridge\OrangeSms\OrangeSmsTransportFactory::class,
Expand Down

0 comments on commit 05c57e2

Please sign in to comment.