PHP Класс Webmozart\Console\Process\ProcessLauncher

This class is used to execute "man" and "less".
С версии: 1.0
Автор: Bernhard Schussek ([email protected])
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
installSignalHandlers ( $terminable = true )
restoreSignalHandlers ( $terminable = true )
run ( $command, array $arguments )

Описание методов

isRunning() публичный Метод

Returns whether the launcher is currently running.
public isRunning ( ) : boolean
Результат boolean Whether the launcher is running.

isSupported() публичный Метод

Returns whether the launcher is supported on the current system.
public isSupported ( ) : boolean
Результат boolean Whether the launcher is supported on the current system.

launchProcess() публичный Метод

Launches a process in the foreground.
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.
Результат integer The exit status of the process.

setCheckInterval() публичный Метод

By default, the interval is 1 second.
public setCheckInterval ( float $checkInterval )
$checkInterval float The check interval.