You are here

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

Formats informational text.

Parameters

string|array $message:

Overrides StyleInterface::text

File

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

Class

SymfonyStyle
Output decorator helpers for the Symfony Style Guide.

Namespace

Symfony\Component\Console\Style

Code

public function text($message) {
  $this
    ->autoPrependText();
  if (!is_array($message)) {
    $this
      ->writeln(sprintf(' // %s', $message));
    return;
  }
  foreach ($message as $element) {
    $this
      ->text($element);
  }
}