From b6fd47fb2294517707eb3aee0d93028776252626 Mon Sep 17 00:00:00 2001 From: Andrey Date: Sun, 17 Nov 2024 22:12:14 +0300 Subject: [PATCH] Update Factory methods for conditional binding --- src/Servers/Reverb/Factory.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Servers/Reverb/Factory.php b/src/Servers/Reverb/Factory.php index 6dd4c726..2c6340cf 100644 --- a/src/Servers/Reverb/Factory.php +++ b/src/Servers/Reverb/Factory.php @@ -69,17 +69,17 @@ public static function make( */ public static function makePusherRouter(): Router { - app()->singleton( + app()->singletonIf( ChannelManager::class, fn () => new ArrayChannelManager ); - app()->bind( + app()->bindIf( ChannelConnectionManager::class, fn () => new ArrayChannelConnectionManager ); - app()->singleton( + app()->singletonIf( PubSubIncomingMessageHandler::class, fn () => new PusherPubSubIncomingMessageHandler, );