public function OutputFormatter::setStyle in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Formatter/OutputFormatter.php \Symfony\Component\Console\Formatter\OutputFormatter::setStyle()
Sets a new style.
Parameters
string $name The style name:
OutputFormatterStyleInterface $style The style instance:
Overrides OutputFormatterInterface::setStyle
1 call to OutputFormatter::setStyle()
- OutputFormatter::__construct in vendor/
symfony/ console/ Formatter/ OutputFormatter.php - Initializes console output formatter.
File
- vendor/
symfony/ console/ Formatter/ OutputFormatter.php, line 85
Class
- OutputFormatter
- Formatter class for console output.
Namespace
Symfony\Component\Console\FormatterCode
public function setStyle($name, OutputFormatterStyleInterface $style) {
$this->styles[strtolower($name)] = $style;
}