public function setIdleTimeout($timeout)
{
if (null !== $timeout && $this->outputDisabled) {
throw new LogicException('Idle timeout can not be set while the output is disabled.');
}
$this->idleTimeout = $this->validateTimeout($timeout);
return $this;
}
/** * Creates new Symfony process with given arguments. * * @param string $commandline The command line to run. * @param integer|null $idle_timeout Idle timeout. * * @return Process */ public function createProcess($commandline, $idle_timeout = null) { $process = new Process($commandline); $process->setTimeout(null); $process->setIdleTimeout($idle_timeout); return $process; }