Skip to content

Commit

Permalink
use singleton
Browse files Browse the repository at this point in the history
  • Loading branch information
joedixon committed Nov 15, 2023
1 parent 9003a64 commit 098bbdf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ public function registerServer()

$server->register();

$this->app->bind(
$this->app->singleton(
ConnectionManager::class,
fn () => $server->buildConnectionManager()
$server->buildConnectionManager()
);

$this->app->bind(
$this->app->singleton(
ChannelManager::class,
fn () => $server->buildChannelManager()
$server->buildChannelManager()
);

$this->app->instance(Logger::class, new NullLogger);
Expand Down

0 comments on commit 098bbdf

Please sign in to comment.