Skip to content

Commit 8802065

Browse files
authored
Merge pull request #2 from gabrielpeixoto/master
Convert ProcessBuilder to Process
2 parents 1be5e21 + b68fa39 commit 8802065

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/SupportsOpera.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace Appstract\DuskDrivers\Opera;
44

55
use Symfony\Component\Process\Process;
6-
use Symfony\Component\Process\ProcessBuilder;
76

87
trait SupportsOpera
98
{
@@ -47,10 +46,11 @@ public static function stopOperaDriver()
4746
*/
4847
protected static function buildOperaProcess()
4948
{
50-
return (new ProcessBuilder())
51-
->setPrefix(realpath(__DIR__.'/../bin/operadriver-'.static::driverSuffix()))
52-
->getProcess()
53-
->setEnv(static::operaEnvironment());
49+
return (new Process(
50+
[realpath(__DIR__.'/../bin/operadriver-'.static::driverSuffix())],
51+
null,
52+
static::operaEnvironment()
53+
));
5454
}
5555

5656
/**

0 commit comments

Comments
 (0)