Skip to content

Commit

Permalink
fix: notifier channel bus abstract arg
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael-geffroy authored and nicolas-grekas committed Dec 7, 2024
1 parent 4d4421c commit 1c630f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DependencyInjection/FrameworkExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -2784,7 +2784,7 @@ private function registerNotifierConfiguration(array $config, ContainerBuilder $
$container->removeDefinition('notifier.channel.email');
}

foreach (['texter', 'chatter', 'notifier.channel.chat', 'notifier.channel.email', 'notifier.channel.sms', 'notifier.channel.push'] as $serviceId) {
foreach (['texter', 'chatter', 'notifier.channel.chat', 'notifier.channel.email', 'notifier.channel.sms', 'notifier.channel.push', 'notifier.channel.desktop'] as $serviceId) {
if (!$container->hasDefinition($serviceId)) {
continue;
}
Expand Down
5 changes: 4 additions & 1 deletion Resources/config/notifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@
->tag('notifier.channel', ['channel' => 'push'])

->set('notifier.channel.desktop', DesktopChannel::class)
->args([service('texter.transports'), service('messenger.default_bus')->ignoreOnInvalid()])
->args([
service('texter.transports'),
abstract_arg('message bus'),
])
->tag('notifier.channel', ['channel' => 'desktop'])

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

0 comments on commit 1c630f4

Please sign in to comment.