diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php index d7423320..1b30580c 100644 --- a/src/ServiceProvider.php +++ b/src/ServiceProvider.php @@ -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);