Skip to content

[Process] Consider allowing streamable input #14482

Closed
@schmittjoh

Description

@schmittjoh

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());
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions