From df1f3da3bc8d79ac1decf00347afb0b0f9344165 Mon Sep 17 00:00:00 2001 From: Gijs van Lammeren Date: Wed, 7 Feb 2018 17:49:05 +0100 Subject: [PATCH] Replaced setStdin with setInput for Process. Bumped requirements for symfony/process. --- Command/AbstractCommand.php | 4 ++-- composer.json | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Command/AbstractCommand.php b/Command/AbstractCommand.php index b752eb5..067641b 100644 --- a/Command/AbstractCommand.php +++ b/Command/AbstractCommand.php @@ -163,7 +163,7 @@ protected function extractFromPhp($path) )); $process = new Process('xgettext '.$options); - $process->setStdin(implode("\n", $files)); + $process->setInput(implode("\n", $files)); $process->run(); $output = $process->getOutput(); if (!$process->isSuccessful()) { @@ -255,7 +255,7 @@ protected function combineFiles(array $files, $path) )); $process = new Process('msgcat '.$options); - $process->setStdin(implode("\n", $files)); + $process->setInput(implode("\n", $files)); $process->run(); $output = $process->getOutput(); diff --git a/composer.json b/composer.json index de9b5f1..e39ec0f 100644 --- a/composer.json +++ b/composer.json @@ -11,11 +11,12 @@ "email": "m.vanderschee@leaseweb.com" } ], - "minimum-stability": "dev", + "minimum-stability": "stable", "require": { "php": ">=5.3.2", - "symfony/framework-bundle": ">=2.1", - "twig/twig": "~1.12" + "symfony/framework-bundle": "^2.1|^3.0", + "twig/twig": "~1.12", + "symfony/process": "^2.5|^3.0" }, "require-dev": { },