public function SymfonyStyle::listing in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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\StyleCode
public function listing(array $elements) {
$this
->autoPrependText();
$elements = array_map(function ($element) {
return sprintf(' * %s', $element);
}, $elements);
$this
->writeln($elements);
$this
->newLine();
}