Skip to content

Commit

Permalink
Update Factory methods for conditional binding
Browse files Browse the repository at this point in the history
  • Loading branch information
aPalenov authored Nov 17, 2024
1 parent 05ec48d commit b6fd47f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Servers/Reverb/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
Expand Down

0 comments on commit b6fd47f

Please sign in to comment.