Gitonomy\Git\Repository::getProcess PHP Méthode

getProcess() private méthode

Made private to be sure that process creation is handled through the run method. run method ensures logging and debug.
See also: self::run
private getProcess ( $command, $args = [] )
    private function getProcess($command, $args = array())
    {
        $base = array($this->command, '--git-dir', $this->gitDir);
        if ($this->workingDir) {
            $base = array_merge($base, array('--work-tree', $this->workingDir));
        }
        $base[] = $command;
        $builder = new ProcessBuilder(array_merge($base, $args));
        $builder->inheritEnvironmentVariables(false);
        $process = $builder->getProcess();
        $process->setEnv($this->environmentVariables);
        $process->setTimeout($this->processTimeout);
        $process->setIdleTimeout($this->processTimeout);
        return $process;
    }