Skip to content

Commit

Permalink
Merge 6fd9fc0 into 085d2e1
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriksm committed Feb 14, 2019
2 parents 085d2e1 + 6fd9fc0 commit 2da98a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"eiriksm/symfony-console-array-output": "^1.0",
"violinist-dev/project-data": "^1",
"m4tthumphrey/php-gitlab-api": "^9.10",
"peterpostmann/parse_uri": "^1.0"
"peterpostmann/parse_uri": "^1.0",
"violinist-dev/composer-updater": "dev-master"
},
"autoload": {
"psr-4": {"eiriksm\\CosyComposer\\": "src"}
Expand Down
7 changes: 4 additions & 3 deletions src/ProcessFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@
namespace eiriksm\CosyComposer;

use Symfony\Component\Process\Process;
use Violinist\ProcessFactory\ProcessFactoryInterface;

class ProcessFactory
class ProcessFactory implements ProcessFactoryInterface
{

public function getProcess($cmd, $cwd = null)
public function getProcess($commandline, $cwd = null, array $env = null, $input = null, $timeout = 60, array $options = null)
{
if (!$cwd) {
$cwd = $this->getCwd();
}
return new Process($cmd, $cwd);
return new Process($commandline, $cwd);
}

protected function getCwd()
Expand Down

0 comments on commit 2da98a8

Please sign in to comment.