InvokedProcess
interface InvokedProcess
Methods
Get the process ID if the process is still running.
Get the command line for the process.
Send a signal to the process.
Stop the process if it is still running.
Determine if the process is still running.
Get the standard output for the process.
Get the error output for the process.
Get the latest standard output for the process.
Get the latest error output for the process.
Ensure that the process has not timed out.
Wait for the process to finish.
Wait until the given callback returns true.
Details
at line 12
int|null
id()
Get the process ID if the process is still running.
at line 17
string
command()
Get the command line for the process.
at line 22
InvokedProcess
signal(int $signal)
Send a signal to the process.
at line 27
int|null
stop(float $timeout = 10, int|null $signal = null)
Stop the process if it is still running.
at line 32
bool
running()
Determine if the process is still running.
at line 37
string
output()
Get the standard output for the process.
at line 42
string
errorOutput()
Get the error output for the process.
at line 47
string
latestOutput()
Get the latest standard output for the process.
at line 52
string
latestErrorOutput()
Get the latest error output for the process.
at line 57
void
ensureNotTimedOut()
Ensure that the process has not timed out.
at line 62
ProcessResult
wait(callable|null $output = null)
Wait for the process to finish.
at line 67
ProcessResult
waitUntil(callable|null $output = null)
Wait until the given callback returns true.