Skip to content

Commit

Permalink
increased timeout for composer require command
Browse files Browse the repository at this point in the history
  • Loading branch information
azeemhassni committed May 22, 2017
1 parent 6b232fd commit 9cff816
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/TimberInstaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ public function install()
$process->setTty(true);
}

$process->setTimeout(3600);

$process->run(function ($type, $line) {
$this->output->writeln($line);
});
Expand Down
1 change: 1 addition & 0 deletions src/Traits/Composer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
Expand Down

0 comments on commit 9cff816

Please sign in to comment.