|
@@ 32-36 (lines=5) @@
|
| 29 |
|
|
| 30 |
|
\WyriHaximus\React\futurePromise($loop, $process)->then(function (Process $process) use ($loop, &$buffers) { |
| 31 |
|
$process->start($loop); |
| 32 |
|
if ($process->stderr instanceof ReadableStreamInterface) { |
| 33 |
|
$process->stderr->on('data', function ($output) use (&$buffers) { |
| 34 |
|
$buffers['stderr'] .= $output; |
| 35 |
|
}); |
| 36 |
|
} |
| 37 |
|
if ($process->stdout instanceof ReadableStreamInterface) { |
| 38 |
|
$process->stdout->on('data', function ($output) use (&$buffers) { |
| 39 |
|
$buffers['stdout'] .= $output; |
|
@@ 37-41 (lines=5) @@
|
| 34 |
|
$buffers['stderr'] .= $output; |
| 35 |
|
}); |
| 36 |
|
} |
| 37 |
|
if ($process->stdout instanceof ReadableStreamInterface) { |
| 38 |
|
$process->stdout->on('data', function ($output) use (&$buffers) { |
| 39 |
|
$buffers['stdout'] .= $output; |
| 40 |
|
}); |
| 41 |
|
} |
| 42 |
|
}); |
| 43 |
|
|
| 44 |
|
return $deferred->promise(); |