From 7bd7ab2cf79a78794c2f965812fb3ce7da0ae502 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20B=C3=B8ndergaard?= Date: Mon, 16 Mar 2020 17:03:53 +0100 Subject: [PATCH] Make changes for symfony/process v5 --- composer.json | 6 +++--- src/PdfGenerator.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 820847a..0662dcc 100644 --- a/composer.json +++ b/composer.json @@ -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": { diff --git a/src/PdfGenerator.php b/src/PdfGenerator.php index fcd1471..4147147 100644 --- a/src/PdfGenerator.php +++ b/src/PdfGenerator.php @@ -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();