Method | Description | |
---|---|---|
isRunning ( ) : boolean | Returns whether the launcher is currently running. | |
isSupported ( ) : boolean | Returns whether the launcher is supported on the current system. | |
launchProcess ( string $command, array $arguments = [], boolean $killable = true ) : integer | Launches a process in the foreground. | |
setCheckInterval ( float $checkInterval ) | Returns the interval used to check whether the process is still alive. |
Method | Description | |
---|---|---|
installSignalHandlers ( $terminable = true ) | ||
restoreSignalHandlers ( $terminable = true ) | ||
run ( $command, array $arguments ) |
public isSupported ( ) : boolean | ||
return | boolean | Whether the launcher is supported on the current system. |
public launchProcess ( string $command, array $arguments = [], boolean $killable = true ) : integer | ||
$command | string | The command to execute. |
$arguments | array | Arguments to be quoted and inserted into the command. Each key "key" in the array should correspond to a placeholder "%key%" in the command. |
$killable | boolean | Whether the process can be killed by the user. |
return | integer | The exit status of the process. |
public setCheckInterval ( float $checkInterval ) | ||
$checkInterval | float | The check interval. |