Symfony\Component\Console\Formatter\OutputFormatterStyle::setForeground
Sets style foreground color.
Signature
public function setForeground([string
$color = null] )
Parameters
$color
— string- The color name
Errors/Exceptions
-
InvalidArgumentException
- When the color name isn't defined