You are here

public function SymfonyStyle::listing in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/console/Style/SymfonyStyle.php \Symfony\Component\Console\Style\SymfonyStyle::listing()

Formats a list.

Parameters

array $elements:

Overrides StyleInterface::listing

File

vendor/symfony/console/Style/SymfonyStyle.php, line 133

Class

SymfonyStyle
Output decorator helpers for the Symfony Style Guide.

Namespace

Symfony\Component\Console\Style

Code

public function listing(array $elements) {
  $this
    ->autoPrependText();
  $elements = array_map(function ($element) {
    return sprintf(' * %s', $element);
  }, $elements);
  $this
    ->writeln($elements);
  $this
    ->newLine();
}