Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. BaseDependencyCommand.php

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\Command

Code

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);
    }
}
RSS feed
Powered by Drupal