Skip to content
This repository was archived by the owner on Dec 28, 2021. It is now read-only.

Commit 87c044e

Browse files
authored
Update Command.php
Symfony 4 proof
1 parent 6319b04 commit 87c044e

File tree

1 file changed

+3
-18
lines changed

1 file changed

+3
-18
lines changed

src/Helpers/Command.php

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ class Command
1818
*/
1919
protected static function command($prefix, $args)
2020
{
21-
$process = new Process(self::builder($prefix, $args));
21+
$arguments = array_merge([$prefix], $args);
22+
23+
$process = new Process($arguments);
2224
$process->run();
2325

2426
// executes after the command finishes
@@ -28,21 +30,4 @@ protected static function command($prefix, $args)
2830

2931
return $process->getOutput();
3032
}
31-
32-
/**
33-
* @param $prefix
34-
* @param array $args
35-
*
36-
* @return string
37-
*/
38-
public static function builder($prefix, $args)
39-
{
40-
$builder = new ProcessBuilder();
41-
$builder->setPrefix($prefix);
42-
43-
return $builder
44-
->setArguments($args)
45-
->getProcess()
46-
->getCommandLine();
47-
}
4833
}

0 commit comments

Comments
 (0)