mirror of
https://github.com/andres-montanez/Magallanes
synced 2024-05-23 08:02:15 +02:00
Added support for configuring runCommand's timeout argument in Composer InstallTask
This commit is contained in:
parent
2a9134cc35
commit
5f0b5d86c7
|
@ -36,7 +36,7 @@ class InstallTask extends AbstractTask
|
|||
$cmd = sprintf('%s install %s', $options['path'], $options['flags']);
|
||||
|
||||
/** @var Process $process */
|
||||
$process = $this->runtime->runCommand(trim($cmd));
|
||||
$process = $this->runtime->runCommand(trim($cmd), $options['timeout']);
|
||||
|
||||
return $process->isSuccessful();
|
||||
}
|
||||
|
@ -44,7 +44,7 @@ class InstallTask extends AbstractTask
|
|||
protected function getOptions()
|
||||
{
|
||||
$options = array_merge(
|
||||
['path' => 'composer', 'flags' => '--optimize-autoloader'],
|
||||
['path' => 'composer', 'flags' => '--optimize-autoloader', 'timeout' => 120],
|
||||
$this->runtime->getMergedOption('composer'),
|
||||
$this->options
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue