diff --git a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/UnusedTagsPass.php b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/UnusedTagsPass.php index 5bbcb7452e..7a966fd214 100644 --- a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/UnusedTagsPass.php +++ b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/UnusedTagsPass.php @@ -24,6 +24,7 @@ class UnusedTagsPass implements CompilerPassInterface private $whitelist = [ 'annotations.cached_reader', 'cache.pool.clearer', + 'chatter.transport_factory', 'console.command', 'container.hot_path', 'container.reversible', @@ -56,6 +57,7 @@ class UnusedTagsPass implements CompilerPassInterface 'security.voter', 'serializer.encoder', 'serializer.normalizer', + 'texter.transport_factory', 'translation.dumper', 'translation.extractor', 'translation.loader', diff --git a/src/Symfony/Component/Notifier/Channel/BrowserChannel.php b/src/Symfony/Component/Notifier/Channel/BrowserChannel.php index bd6bb29660..c0f6dbc7bf 100644 --- a/src/Symfony/Component/Notifier/Channel/BrowserChannel.php +++ b/src/Symfony/Component/Notifier/Channel/BrowserChannel.php @@ -12,7 +12,6 @@ namespace Symfony\Component\Notifier\Channel; use Symfony\Component\HttpFoundation\RequestStack; -use Symfony\Component\Messenger\MessageBusInterface; use Symfony\Component\Notifier\Notification\Notification; use Symfony\Component\Notifier\Recipient\Recipient; @@ -30,7 +29,7 @@ final class BrowserChannel implements ChannelInterface $this->stack = $stack; } - public function notify(Notification $notification, Recipient $recipient, string $transportName = null, MessageBusInterface $bus = null): void + public function notify(Notification $notification, Recipient $recipient, string $transportName = null): void { if (null === $request = $this->stack->getCurrentRequest()) { return;