From 1ca4f692b7d3030a59599ffc0ad102195c005aed Mon Sep 17 00:00:00 2001 From: Henry <51729131+henry11996@users.noreply.github.com> Date: Fri, 10 May 2024 17:45:12 +0800 Subject: [PATCH] Update TrafficLight example in README (#29) --- readme.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/readme.md b/readme.md index de92f15..3daa6f5 100644 --- a/readme.md +++ b/readme.md @@ -122,14 +122,14 @@ class TrafficLight implements ColorSchemeInterface // Our Color Scheme $this->setColorizeArray(array( - Level::Debug => $this->ansi->color(SGR::COLOR_FG_WHITE)->get(), - Level::Info => $this->ansi->color(SGR::COLOR_FG_GREEN)->get(), - Level::Notice => $this->ansi->color(SGR::COLOR_FG_CYAN)->get(), - Level::Warning => $this->ansi->color(SGR::COLOR_FG_YELLOW)->get(), - Level::Error => $this->ansi->color(SGR::COLOR_FG_RED)->get(), - Level::Critical => $this->ansi->color(SGR::COLOR_FG_RED)->underline()->get(), - Level::Alert => $this->ansi->color([SGR::COLOR_FG_WHITE, SGR::COLOR_BG_RED_BRIGHT])->get(), - Level::Emergency => $this->ansi->color(SGR::COLOR_BG_RED_BRIGHT)->blink()->color(SGR::COLOR_FG_WHITE)->get(), + Level::Debug->value => $this->ansi->color([SGR::COLOR_FG_WHITE])->get(), + Level::Info->value => $this->ansi->color([SGR::COLOR_FG_GREEN])->get(), + Level::Notice->value => $this->ansi->color([SGR::COLOR_FG_CYAN])->get(), + Level::Warning->value => $this->ansi->color([SGR::COLOR_FG_YELLOW])->get(), + Level::Error->value => $this->ansi->color([SGR::COLOR_FG_RED])->get(), + Level::Critical->value => $this->ansi->color([SGR::COLOR_FG_RED])->underline()->get(), + Level::Alert->value => $this->ansi->color([SGR::COLOR_FG_WHITE, SGR::COLOR_BG_RED_BRIGHT])->get(), + Level::Emergency->value => $this->ansi->color([SGR::COLOR_BG_RED_BRIGHT])->blink()->color([SGR::COLOR_FG_WHITE])->get(), )); } }