Skip to content

Commit

Permalink
[Process] moved protected to private
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Mar 24, 2011
1 parent 34cf511 commit 639d93c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/Symfony/Component/Process/PhpProcess.php
Expand Up @@ -41,7 +41,7 @@ public function __construct($script, $cwd = null, array $env = array(), $timeout
*/
public function setPhpBinary($php)
{
$this->commandline = $php;
$this->setCommandLine($php);
}

/**
Expand All @@ -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'))) {
Expand Down
25 changes: 15 additions & 10 deletions src/Symfony/Component/Process/Process.php
Expand Up @@ -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.
Expand Down Expand Up @@ -261,4 +261,9 @@ public function addErrorOutput($line)
{
$this->stderr .= $line;
}

public function setCommandLine($commandline)
{
$this->commandline = $commandline;
}
}

0 comments on commit 639d93c

Please sign in to comment.