You are here

public function SymfonyStyle::section 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::section()

Formats a section title.

Parameters

string $message:

Overrides StyleInterface::section

File

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

Class

SymfonyStyle
Output decorator helpers for the Symfony Style Guide.

Namespace

Symfony\Component\Console\Style

Code

public function section($message) {
  $this
    ->autoPrependBlock();
  $this
    ->writeln(array(
    sprintf('<comment>%s</>', $message),
    sprintf('<comment>%s</>', str_repeat('-', strlen($message))),
  ));
  $this
    ->newLine();
}