Skip to content

Commit df3f797

Browse files
committed
use singleton
1 parent 9003a64 commit df3f797

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ServiceProvider.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ public function registerServer()
4747

4848
$server->register();
4949

50-
$this->app->bind(
50+
$this->app->singleton(
5151
ConnectionManager::class,
5252
fn () => $server->buildConnectionManager()
5353
);
5454

55-
$this->app->bind(
55+
$this->app->singleton(
5656
ChannelManager::class,
5757
fn () => $server->buildChannelManager()
5858
);

0 commit comments

Comments
 (0)