Closed
Description
Currently, the process component assumes that input is known before a command is invoked. Sometimes, you want to stream the input, i.e. gradually write it to the process that is being run. This could for example be done by exposing the pipes, or maybe better a specific method for writing:
$process = new Process('takes-some-input');
$process->start();
while ($stream->hasContent()) {
$process->write($stream->read());
}