$this->laravel

This commit is contained in:
Alex Renoki 2020-08-13 15:16:30 +03:00
parent 16446309ca
commit 4e9b526648
1 changed files with 4 additions and 1 deletions

View File

@ -71,7 +71,10 @@ class StartWebSocketServer extends Command
$this->laravel->singleton(StatisticsLoggerInterface::class, function () use ($browser) {
$class = config('websockets.statistics.logger', \BeyondCode\LaravelWebSockets\Statistics\Logger::class);
return new $class(app(ChannelManager::class), $browser);
return new $class(
$this->laravel->make(ChannelManager::class),
$browser
);
});
$this->loop->addPeriodicTimer(config('websockets.statistics.interval_in_seconds'), function () {