Skip to content

Commit 9cff816

Browse files
committed
increased timeout for composer require command
1 parent 6b232fd commit 9cff816

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/TimberInstaller.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ public function install()
4646
$process->setTty(true);
4747
}
4848

49+
$process->setTimeout(3600);
50+
4951
$process->run(function ($type, $line) {
5052
$this->output->writeln($line);
5153
});

src/Traits/Composer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ protected function install($package)
1616
{
1717
$command = $this->findComposer() . ' require ' . $package;
1818
$process = new Process($command);
19+
$process->setTimeout(3600);
1920
$process->run(function ($type, $line) {
2021
echo $line . PHP_EOL;
2122
});

0 commit comments

Comments
 (0)