Skip to content

Commit

Permalink
Make changes for symfony/process v5
Browse files Browse the repository at this point in the history
  • Loading branch information
danielboendergaard committed Mar 16, 2020
1 parent d2a7c3b commit 7bd7ab2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions composer.json
Expand Up @@ -10,9 +10,9 @@
}
],
"require": {
"php": ">=5.4.0",
"symfony/http-foundation": ">=2.6 <5.0",
"symfony/process": ">=2.6 <5.0"
"php": "^7.2.5",
"symfony/http-foundation": "^5.0",
"symfony/process": "^5.0"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion src/PdfGenerator.php
Expand Up @@ -132,7 +132,7 @@ protected function generatePdf($view)
implode(' ', $this->commandLineArguments),
]);

$process = new Process($command, __DIR__);
$process = Process::fromShellCommandline($command, __DIR__);
$process->setTimeout($this->timeout);
$process->run();

Expand Down

0 comments on commit 7bd7ab2

Please sign in to comment.