Deployer\Console\Output\OutputWatcher::writeln PHP Method

writeln() public method

public writeln ( $messages, $type = self::OUTPUT_NORMAL )
    public function writeln($messages, $type = self::OUTPUT_NORMAL)
    {
        $this->write($messages, true, $type);
    }

Usage Example

Beispiel #1
0
 /**
  * @param string $serverName
  * @param string $exceptionClass
  * @param string $message
  */
 public function taskException($serverName, $exceptionClass, $message)
 {
     $formatter = Deployer::get()->getHelper('formatter');
     $messages = explode("\n", $message);
     array_unshift($messages, "Exception [{$exceptionClass}] on [{$serverName}] server:");
     $this->output->writeln($formatter->formatBlock($messages, 'error', true));
 }
All Usage Examples Of Deployer\Console\Output\OutputWatcher::writeln