write() public method

Writes some text to the text writer
See also: TextWriter::write()
public write ( string $text, $pipe = TextWriter::STDOUT ) : Console
$text string
return Console
Ejemplo n.º 1
0
 /**
  * Writes some text to the text writer
  * 
  * @see format()
  * @param string $text
  * @param int|array $formatOptions
  * @param int $pipe
  * @return Command
  */
 public function write($text, $formatOptions = array(), $pipe = TextWriter::STDOUT)
 {
     $this->console->write($this->format($text, $formatOptions), $pipe);
     return $this;
 }
Ejemplo n.º 2
0
 /**
  * @param $message
  */
 public function log($message)
 {
     $out = new Console();
     $out->write($message);
 }