function Process::addOutput
Adds a line to the STDOUT stream.
@internal
1 call to Process::addOutput()
- Process::buildCallback in vendor/
symfony/ process/ Process.php - Builds up the callback used by wait().
File
-
vendor/
symfony/ process/ Process.php, line 943
Class
- Process
- Process is a thin wrapper around proc_* functions to easily start independent PHP processes.
Namespace
Symfony\Component\ProcessCode
public function addOutput(string $line) : void {
$this->lastOutputTime = microtime(true);
fseek($this->stdout, 0, \SEEK_END);
fwrite($this->stdout, $line);
fseek($this->stdout, $this->incrementalOutputOffset);
}