From f759f871a9f89b735f8e45f31393aa945498cfd8 Mon Sep 17 00:00:00 2001 From: Romain Neutron Date: Mon, 12 Aug 2013 14:20:11 +0200 Subject: [PATCH] [Process] Make Process::start method chainable --- src/Symfony/Component/Process/Process.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Symfony/Component/Process/Process.php b/src/Symfony/Component/Process/Process.php index f171681468d0..106fa520868b 100644 --- a/src/Symfony/Component/Process/Process.php +++ b/src/Symfony/Component/Process/Process.php @@ -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 @@ -329,6 +331,8 @@ public function start($callback = null) } $this->updateStatus(); + + return $this; } /**