Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit 4e9b526

Browse files
committed
$this->laravel
1 parent 1644630 commit 4e9b526

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Console/StartWebSocketServer.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ protected function configureStatisticsLogger()
7171
$this->laravel->singleton(StatisticsLoggerInterface::class, function () use ($browser) {
7272
$class = config('websockets.statistics.logger', \BeyondCode\LaravelWebSockets\Statistics\Logger::class);
7373

74-
return new $class(app(ChannelManager::class), $browser);
74+
return new $class(
75+
$this->laravel->make(ChannelManager::class),
76+
$browser
77+
);
7578
});
7679

7780
$this->loop->addPeriodicTimer(config('websockets.statistics.interval_in_seconds'), function () {

0 commit comments

Comments
 (0)