From 639d93cbbf29750d443063316fe133b66a80de6c Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Thu, 24 Mar 2011 09:10:42 +0100 Subject: [PATCH] [Process] moved protected to private --- src/Symfony/Component/Process/PhpProcess.php | 4 ++-- src/Symfony/Component/Process/Process.php | 25 ++++++++++++-------- 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/src/Symfony/Component/Process/PhpProcess.php b/src/Symfony/Component/Process/PhpProcess.php index 3a5580fb609e..d0bfdcf2c6b0 100644 --- a/src/Symfony/Component/Process/PhpProcess.php +++ b/src/Symfony/Component/Process/PhpProcess.php @@ -41,7 +41,7 @@ public function __construct($script, $cwd = null, array $env = array(), $timeout */ public function setPhpBinary($php) { - $this->commandline = $php; + $this->setCommandLine($php); } /** @@ -68,7 +68,7 @@ public function run($callback = null) * * @throws \RuntimeException When defined PHP_PATH is not executable or not found */ - static public function getPhpBinary() + private function getPhpBinary() { if (getenv('PHP_PATH')) { if (!is_executable($php = getenv('PHP_PATH'))) { diff --git a/src/Symfony/Component/Process/Process.php b/src/Symfony/Component/Process/Process.php index ea71b2e29de8..87b64d24a172 100644 --- a/src/Symfony/Component/Process/Process.php +++ b/src/Symfony/Component/Process/Process.php @@ -19,16 +19,16 @@ */ class Process { - protected $commandline; - protected $cwd; - protected $env; - protected $stdin; - protected $timeout; - protected $options; - protected $exitcode; - protected $status; - protected $stdout; - protected $stderr; + private $commandline; + private $cwd; + private $env; + private $stdin; + private $timeout; + private $options; + private $exitcode; + private $status; + private $stdout; + private $stderr; /** * Constructor. @@ -261,4 +261,9 @@ public function addErrorOutput($line) { $this->stderr .= $line; } + + public function setCommandLine($commandline) + { + $this->commandline = $commandline; + } }