Add support for Symfony 4.4 and 5.0; remove for 4.2 and 4.3

This commit is contained in:
Kamil Kokot
2019-11-26 14:55:55 +01:00
parent f2ba93c12e
commit fbe3fb6c5e
4 changed files with 20 additions and 13 deletions

View File

@@ -218,8 +218,7 @@ CON
$executablePath = $this->thereIsFile('__executable.php', $content);
}
$this->process = new Process(sprintf('%s %s --strict -vvv --no-interaction --lang=en', self::$phpBin, escapeshellarg($executablePath)));
$this->process->setWorkingDirectory(self::$workingDir);
$this->process = new Process([self::$phpBin, $executablePath, '--strict', '-vvv', '--no-interaction', '--lang=en'], self::$workingDir);
$this->process->start();
$this->process->wait();
}