Symfony\Component\Process\Process::wait
Waits for the process to terminate.
The callback receives the type of output (out or err) and some bytes from the output in real-time while writing the standard input to the process. It allows to have feedback from the independent process during execution.
Signature
public function wait([callback|null
$callback = null] )
Parameters
$callback
— object- A valid PHP callback
Returns
- integer
- The exitcode of the process
Errors/Exceptions
-
RuntimeException
- When process timed out
-
RuntimeException
- When process stopped after receiving signal