make verbose work

This commit is contained in:
freek 2018-11-26 08:55:08 +01:00
parent 90518976f5
commit 726760d448
2 changed files with 2 additions and 6 deletions

View File

@ -33,8 +33,6 @@ class ConfigClientProvider implements ClientProvider
return $this->instanciate($clientAttributes);
}
protected function allClients(): Collection
{
return collect(config('websockets.clients'));

View File

@ -30,8 +30,7 @@ class StartWebSocketServer extends Command
app()->singleton(MessageLogger::class, function() {
return (new MessageLogger($this->output))
->enable(config('app.debug'))
//TODO: use real option
->verbose($this->hasOption('vvv'));
->verbose($this->output->isVerbose());
});
return $this;
@ -42,8 +41,7 @@ class StartWebSocketServer extends Command
app()->bind(ConnectionLogger::class, function() {
return (new ConnectionLogger($this->output))
->enable(config('app.debug'))
//TODO: use real option
->verbose($this->hasOption('vvv'));
->verbose($this->output->isVerbose());
});
return $this;