Skip to content

Commit f3e795e

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 8a36b20 + a7700eb commit f3e795e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

DependencyInjection/FrameworkExtension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
use Symfony\Component\Messenger\Transport\TransportInterface;
9191
use Symfony\Component\Mime\MimeTypeGuesserInterface;
9292
use Symfony\Component\Mime\MimeTypes;
93+
use Symfony\Component\Notifier\Bridge\Firebase\FirebaseTransportFactory;
9394
use Symfony\Component\Notifier\Bridge\Mattermost\MattermostTransportFactory;
9495
use Symfony\Component\Notifier\Bridge\Nexmo\NexmoTransportFactory;
9596
use Symfony\Component\Notifier\Bridge\RocketChat\RocketChatTransportFactory;
@@ -2003,6 +2004,7 @@ private function registerNotifierConfiguration(array $config, ContainerBuilder $
20032004
NexmoTransportFactory::class => 'notifier.transport_factory.nexmo',
20042005
RocketChatTransportFactory::class => 'notifier.transport_factory.rocketchat',
20052006
TwilioTransportFactory::class => 'notifier.transport_factory.twilio',
2007+
FirebaseTransportFactory::class => 'notifier.transport_factory.firebase',
20062008
];
20072009

20082010
foreach ($classToServices as $class => $service) {

Resources/config/notifier_transports.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@
3434
<tag name="texter.transport_factory" />
3535
</service>
3636

37+
<service id="notifier.transport_factory.firebase" class="Symfony\Component\Notifier\Bridge\Firebase\FirebaseTransportFactory" parent="notifier.transport_factory.abstract">
38+
<tag name="texter.transport_factory" />
39+
</service>
40+
3741
<service id="notifier.transport_factory.null" class="Symfony\Component\Notifier\Transport\NullTransportFactory" parent="notifier.transport_factory.abstract">
3842
<tag name="notifier.transport_factory" />
3943
</service>

0 commit comments

Comments
 (0)