Navigation Menu

Skip to content

Commit

Permalink
[Process] Make Process::start method chainable
Browse files Browse the repository at this point in the history
  • Loading branch information
romainneutron committed Aug 12, 2013
1 parent ca47f3b commit f759f87
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Symfony/Component/Process/Process.php
Expand Up @@ -224,6 +224,8 @@ public function run($callback = null)
*
* @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
Expand Down Expand Up @@ -329,6 +331,8 @@ public function start($callback = null)
}

$this->updateStatus();

return $this;
}

/**
Expand Down

0 comments on commit f759f87

Please sign in to comment.