You are here

public function SymfonyStyle::title in Zircon Profile 8

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

Formats a command title.

Parameters

string $message:

Overrides StyleInterface::title

File

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

Class

SymfonyStyle
Output decorator helpers for the Symfony Style Guide.

Namespace

Symfony\Component\Console\Style

Code

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