merged branch romainneutron/process-tweaks (PR #8723)

This PR was merged into the master branch.

Discussion
----------

[Process] Process tweaks

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| License       | MIT

Commits
-------

f759f87 [Process] Make Process::start method chainable
ca47f3b [Process] Fix Process::checkTimeout docblock
This commit is contained in:
Fabien Potencier 2013-08-13 09:31:17 +02:00
commit cb7aebe2fe

View File

@ -224,6 +224,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;
}
/**
@ -1090,7 +1094,7 @@ class Process
* In case you run a background process (with the start method), you should
* trigger this method regularly to ensure the process timeout
*
* @throws RuntimeException In case the timeout was reached
* @throws ProcessTimedOutException In case the timeout was reached
*/
public function checkTimeout()
{