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

write() public method

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

Usage Example

Example #1
0
 /**
  * Print task was ok.
  */
 public function endTask()
 {
     if ($this->output->getVerbosity() == OutputInterface::VERBOSITY_NORMAL && !$this->output->getWasWritten()) {
         $this->output->write("\r<info>✔</info>\n");
     } else {
         $this->output->writeln("<info>✔</info> Ok");
     }
 }
All Usage Examples Of Deployer\Console\Output\OutputWatcher::write