You are here

public function DebugFormatterHelper::start in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Helper/DebugFormatterHelper.php \Symfony\Component\Console\Helper\DebugFormatterHelper::start()

Starts a debug formatting session.

Parameters

string $id The id of the formatting session:

string $message The message to display:

string $prefix The prefix to use:

Return value

string

File

vendor/symfony/console/Helper/DebugFormatterHelper.php, line 36

Class

DebugFormatterHelper
Helps outputting debug information when running an external program from a command.

Namespace

Symfony\Component\Console\Helper

Code

public function start($id, $message, $prefix = 'RUN') {
  $this->started[$id] = array(
    'border' => ++$this->count % count($this->colors),
  );
  return sprintf("%s<bg=blue;fg=white> %s </> <fg=blue>%s</>\n", $this
    ->getBorder($id), $prefix, $message);
}