10000 Merge branch '5.0' · symfony/symfony@f4332cb · GitHub
[go: up one dir, main page]

Skip to content

Commit f4332cb

Browse files
committed
Merge branch '5.0'
* 5.0: [FrameworkBundle] Skip notifiers tags in UnusedTagsPass [Notifier] Remove not needed argument $bus in BrowserChannel::notify()
2 parents b3b368b + 93ccd28 commit f4332cb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/UnusedTagsPass.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class UnusedTagsPass implements CompilerPassInterface
2424
private $whitelist = [
2525
'annotations.cached_reader',
2626
'cache.pool.clearer',
27+
'chatter.transport_factory',
2728
'console.command',
2829
'container.hot_path',
2930
'container.reversible',
@@ -56,6 +57,7 @@ class UnusedTagsPass implements CompilerPassInterface
5657
'security.voter',
5758
'serializer.encoder',
5859
'serializer.normalizer',
60+
'texter.transport_factory',
5961
'translation.dumper',
6062
'translation.extractor',
6163
'translation.loader',

src/Symfony/Component/Notifier/Channel/BrowserChannel.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Symfony\Component\Notifier\Channel;
1313

1414
use Symfony\Component\HttpFoundation\RequestStack;
15-
use Symfony\Component\Messenger\MessageBusInterface;
1615
use Symfony\Component\Notifier\Notification\Notification;
1716
use Symfony\Component\Notifier\Recipient\Recipient;
1817

@@ -30,7 +29,7 @@ public function __construct(RequestStack $stack)
3029
$this->stack = $stack;
3130
}
3231

33-
public function notify(Notification $notification, Recipient $recipient, string $transportName = null, MessageBusInterface $bus = null): void
32+
public function notify(Notification $notification, Recipient $recipient, string $transportName = null): void
3433
{
3534
if (null === $request = $this->stack->getCurrentRequest()) {
3635
return;

0 commit comments

Comments
 (0)
0