8000 bug #59124 [FrameworkBundle] fix: notifier push channel bus abstract … · rch7/symfony@91835ef · GitHub
[go: up one dir, main page]

Skip to content

Commit 91835ef

Browse files
8000
bug symfony#59124 [FrameworkBundle] fix: notifier push channel bus abstract arg (raphael-geffroy)
This PR was merged into the 6.4 branch. Discussion ---------- [FrameworkBundle] fix: notifier push channel bus abstract arg | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | none | License | MIT From what I understand the Desktop and Push channels are not configured the same way as the other channels, they don't use the 'message bus' abstract arg which allows the component to disable or selecting message bus through configuration. So if another message_bus than the default bus is configured inside framework.notifier.message_bus it is ignored for those two. And same if it is set to false inside the configuration. ![image](https://github.com/user-attachments/assets/dd9ecd1b-0edc-4da4-8976-34d6fddefa4c) Commits ------- 97d6e68 fix: notifier push channel bus abstract arg
2 parents ce741a7 + 97d6e68 commit 91835ef

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2765,7 +2765,7 @@ private function registerNotifierConfiguration(array $config, ContainerBuilder $
27652765
$container->removeDefinition('notifier.channel.email');
27662766
}
27672767

2768-
foreach (['texter', 'chatter', 'notifier.channel.chat', 'notifier.channel.email', 'notifier.channel.sms'] as $serviceId) {
2768+
foreach (['texter', 'chatter', 'notifier.channel.chat', 'notifier.channel.email', 'notifier.channel.sms', 'notifier.channel.push'] as $serviceId) {
27692769
if (!$container->hasDefinition($serviceId)) {
27702770
continue;
27712771
}

src/Symfony/Bundle/FrameworkBundle/Resources/config/notifier.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,10 @@
7373
->tag('notifier.channel', ['channel' => 'email'])
7474

7575
->set('notifier.channel.push', PushChannel::class)
76-
->args([service('texter.transports'), service('messenger.default_bus')->ignoreOnInvalid()])
76+
->args([
77+
service('texter.transports'),
78+
abstract_arg('message bus'),
79+
])
7780
->tag('notifier.channel', ['channel' => 'push'])
7881

7982
->set('notifier.monolog_handler', NotifierHandler::class)

0 commit comments

Comments
 (0)
0