From 9cff816d6f761974497bf42a93c728e72892f510 Mon Sep 17 00:00:00 2001 From: Azeem Hassni Date: Mon, 22 May 2017 14:49:15 +0500 Subject: [PATCH] increased timeout for composer require command --- src/TimberInstaller.php | 2 ++ src/Traits/Composer.php | 1 + 2 files changed, 3 insertions(+) diff --git a/src/TimberInstaller.php b/src/TimberInstaller.php index dc25eac..4c06af3 100644 --- a/src/TimberInstaller.php +++ b/src/TimberInstaller.php @@ -46,6 +46,8 @@ public function install() $process->setTty(true); } + $process->setTimeout(3600); + $process->run(function ($type, $line) { $this->output->writeln($line); }); diff --git a/src/Traits/Composer.php b/src/Traits/Composer.php index aa4c556..524b45f 100644 --- a/src/Traits/Composer.php +++ b/src/Traits/Composer.php @@ -16,6 +16,7 @@ protected function install($package) { $command = $this->findComposer() . ' require ' . $package; $process = new Process($command); + $process->setTimeout(3600); $process->run(function ($type, $line) { echo $line . PHP_EOL; });