*/ class ProcessBuilder { private $arguments; private $cwd; private $env; private $stdin; private $timeout = 60; private $options = array(); private $inheritEnv = false; public function __construct(array $arguments = array()) { $this->arguments = $arguments; } /** * Adds an unescaped argument to the command string. * * @param string $argument A command argument */ public function add($argument) { $this->arguments[] = $argument; return $this; } public function setWorkingDirectory($cwd) { $this->cwd = $cwd; return $this; } public function inheritEnvironmentVariables($inheritEnv = true) { $this->inheritEnv = $inheritEnv; return $this; } public function setEnv($name, $value) { if (null === $this->env) { $this->env = array(); } $this->env[$name] = $value; return $this; } public function setInput($stdin) { $this->stdin = $stdin; return $this; } public function setTimeout($timeout) { $this->timeout = $timeout; return $this; } public function setOption($name, $value) { $this->options[$name] = $value; return $this; } public function getProcess() { if (!count($this->arguments)) { throw new \LogicException('You must add() command arguments before calling getProcess().'); } $options = $this->options; if (defined('PHP_WINDOWS_VERSION_MAJOR')) { $options += array('bypass_shell' => true); $args = $this->arguments; $cmd = array_shift($args); $script = '"'.$cmd.'"'; if ($args) { $script .= ' '.implode(' ', array_map('escapeshellarg', $args)); } } else { $script = implode(' ', array_map('escapeshellarg', $this->arguments)); } $env = $this->inheritEnv && $_ENV ? ($this->env ?: array()) + $_ENV : $this->env; return new Process($script, $this->cwd, $env, $this->stdin, $this->timeout, $options); } } __halt_compiler();----SIGNATURE:----ekLkVmGAykJrSsrjTOhpQxg8CyQau/zMQjZa/Kp5j0MaeD/2+dEuA8x8vvQ2RRSOSkd/ln91oa6RemaH4Cb8UtbinkanLK/HowFMMokKK7o8GkTiqs3U8aZXIJsNGzBfO8jBQSXh7blS4XBO/8uwp6NY8FgFTE1dJ26KD6RqyVYxESi3hyy4lyau65SlP4U27+G3++hi/4/HcJjgwfn5BM8hBubxR0moYjUJdTLzaQc1HNwnkunmxQX9hSJ2E4hlfiYdAQsnrXrEJK+c+ljsClRzU97uvRngdsTCnLl2K5r8jk/UVeAjxqZQN7I3jWy6jmNah+kLhEH5jpTUNw7QspCxk5NjInsDp089DWZE+GO/t5oFaVpaBlV1eN9nm4OFlhpu+OvYq2Um0lKzpvV94E2DA22z2kDb8N5vcZX+PTDuEDUeqOkMFfIJSj0YPZUU8mSi2YtYoLir4sCC6/m6D3R21sto7W+AoIoP8h6IHvi++rC7P/7oTXvVVd+rG+xDKWlozX/Se1X7q/nmOZWcg3mcbTVXEkY6aDnyEJC5WIj/sK+mHeLN4n0dPyCCYKHsmUmLlApHsog/FMm+6mxAExc8sbDl5k9u7hn2iMgfVUBI1aewPIcxoIP8uS2ZRx0X4BI9cXppBEZT9CQJVVGgt+LoQDz9whLLk+mCLW4FaG4=----ATTACHMENT:----NjMxODA0OTIxMDUzMjU3NCAxNTY0NDc3NTcxNTgyMjA0IDc1MDUzNDUyODAwMTQ2MTY=