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 df3f797
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ public function registerServer()

$server->register();

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

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

0 comments on commit df3f797

Please sign in to comment.