added timout variable
This commit is contained in:
		| @@ -6,10 +6,10 @@ use Symfony\Component\Process\Process; | ||||
|  | ||||
| class Console | ||||
| { | ||||
|     public static function run($command, $all_output = false) | ||||
|     public static function run($command, $all_output = false, $timeout = 0) | ||||
|     { | ||||
|         $process = new Process($command, base_path()); | ||||
|         $process->setTimeout(900); // 15 minutes | ||||
|         $process->setTimeout($timeout); | ||||
|  | ||||
|         $process->run(); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user