Skip to content

Commit 0c8ea69

Browse files
committed
feature #33968 [Notifier] Add Firebase bridge (Jeroeny)
This PR was squashed before being merged into the 5.1-dev branch (closes #33968). Discussion ---------- [Notifier] Add Firebase bridge | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | Deprecations? | no | Tickets | See #33687 | License | MIT This would add [Firebase](https://firebase.google.com) integration for the Notifier component. With Firebase you can send push notifications to the users of you Android and iOS app and website (formerly known as Google Cloud messaging). I'm not sure if it's possible to have this merged, like the other bridges. Or if I should create a stand-alone repository? That'd be fine too. Also it's now using the `ChatMessage` as implementation of `Symfony\Component\Notifier\Message\MessageInterface`, but I feel like this component could use a `PushMessage` or something similar. Although I'm not sure if it would contain more than `subject` that the `ChatMessage` does. Commits ------- 2776d2f811 [Notifier] Add Firebase bridge
2 parents 5d5a263 + 231b984 commit 0c8ea69

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Exception/UnsupportedSchemeException.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ class UnsupportedSchemeException extends LogicException
4646
'class' => Bridge\Twilio\TwilioTransportFactory::class,
4747
'package' => 'symfony/twilio-notifier',
4848
],
49+
'firebase' => [
50+
'class' => Bridge\Firebase\FirebaseTransportFactory::class,
51+
'package' => 'symfony/firebase-notifier',
52+
],
4953
];
5054

5155
/**

Transport.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
namespace Symfony\Component\Notifier;
1313

14+
use Symfony\Component\Notifier\Bridge\Firebase\FirebaseTransportFactory;
1415
use Symfony\Component\Notifier\Bridge\Mattermost\MattermostTransportFactory;
1516
use Symfony\Component\Notifier\Bridge\Nexmo\NexmoTransportFactory;
1617
use Symfony\Component\Notifier\Bridge\RocketChat\RocketChatTransportFactory;
@@ -42,6 +43,7 @@ class Transport
4243
NexmoTransportFactory::class,
4344
RocketChatTransportFactory::class,
4445
TwilioTransportFactory::class,
46+
FirebaseTransportFactory::class,
4547
];
4648

4749
private $factories;

0 commit comments

Comments
 (0)