Skip to content

Commit 1ca4f69

Browse files
authored
Update TrafficLight example in README (#29)
1 parent 1ce52a1 commit 1ca4f69

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

readme.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,14 @@ class TrafficLight implements ColorSchemeInterface
122122

123123
// Our Color Scheme
124124
$this->setColorizeArray(array(
125-
Level::Debug => $this->ansi->color(SGR::COLOR_FG_WHITE)->get(),
126-
Level::Info => $this->ansi->color(SGR::COLOR_FG_GREEN)->get(),
127-
Level::Notice => $this->ansi->color(SGR::COLOR_FG_CYAN)->get(),
128-
Level::Warning => $this->ansi->color(SGR::COLOR_FG_YELLOW)->get(),
129-
Level::Error => $this->ansi->color(SGR::COLOR_FG_RED)->get(),
130-
Level::Critical => $this->ansi->color(SGR::COLOR_FG_RED)->underline()->get(),
131-
Level::Alert => $this->ansi->color([SGR::COLOR_FG_WHITE, SGR::COLOR_BG_RED_BRIGHT])->get(),
132-
Level::Emergency => $this->ansi->color(SGR::COLOR_BG_RED_BRIGHT)->blink()->color(SGR::COLOR_FG_WHITE)->get(),
125+
Level::Debug->value => $this->ansi->color([SGR::COLOR_FG_WHITE])->get(),
126+
Level::Info->value => $this->ansi->color([SGR::COLOR_FG_GREEN])->get(),
127+
Level::Notice->value => $this->ansi->color([SGR::COLOR_FG_CYAN])->get(),
128+
Level::Warning->value => $this->ansi->color([SGR::COLOR_FG_YELLOW])->get(),
129+
Level::Error->value => $this->ansi->color([SGR::COLOR_FG_RED])->get(),
130+
Level::Critical->value => $this->ansi->color([SGR::COLOR_FG_RED])->underline()->get(),
131+
Level::Alert->value => $this->ansi->color([SGR::COLOR_FG_WHITE, SGR::COLOR_BG_RED_BRIGHT])->get(),
132+
Level::Emergency->value => $this->ansi->color([SGR::COLOR_BG_RED_BRIGHT])->blink()->color([SGR::COLOR_FG_WHITE])->get(),
133133
));
134134
}
135135
}

0 commit comments

Comments
 (0)