[Process] Make Process::start method chainable
This commit is contained in:
parent
ca47f3b675
commit
f759f871a9
@ -225,6 +225,8 @@ class Process
|
||||
* @param callback|null $callback A PHP callback to run whenever there is some
|
||||
* output available on STDOUT or STDERR
|
||||
*
|
||||
* @return Process The process itself
|
||||
*
|
||||
* @throws RuntimeException When process can't be launch or is stopped
|
||||
* @throws RuntimeException When process is already running
|
||||
*/
|
||||
@ -329,6 +331,8 @@ class Process
|
||||
}
|
||||
|
||||
$this->updateStatus();
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user