function BaseDependencyCommand::initStyles
Init styles for tree
1 call to BaseDependencyCommand::initStyles()
- BaseDependencyCommand::doExecute in vendor/
composer/ composer/ src/ Composer/ Command/ BaseDependencyCommand.php - Execute the command.
File
-
vendor/
composer/ composer/ src/ Composer/ Command/ BaseDependencyCommand.php, line 238
Class
- BaseDependencyCommand
- Base implementation for commands mapping dependency relationships.
Namespace
Composer\CommandCode
protected function initStyles(OutputInterface $output) : void {
$this->colors = [
'green',
'yellow',
'cyan',
'magenta',
'blue',
];
foreach ($this->colors as $color) {
$style = new OutputFormatterStyle($color);
$output->getFormatter()
->setStyle($color, $style);
}
}