Merge branch 'master' of github.com:beyondcode/laravel-websockets

This commit is contained in:
freek 2018-11-26 22:29:32 +01:00
commit c8c0367663
1 changed files with 7 additions and 0 deletions

View File

@ -3,6 +3,7 @@
namespace BeyondCode\LaravelWebSockets\Server\Logger;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Formatter\OutputFormatterStyle;
class Logger
{
@ -46,6 +47,12 @@ class Logger
protected function warn(string $message)
{
if (! $this->consoleOutput->getFormatter()->hasStyle('warning')) {
$style = new OutputFormatterStyle('yellow');
$this->consoleOutput->getFormatter()->setStyle('warning', $style);
}
$this->line($message, 'warning');
}