This commit is contained in:
Alex Renoki 2020-08-13 10:17:34 +03:00
parent 5e0ec9e6a1
commit 10c2a06086
1 changed files with 1 additions and 1 deletions

View File

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