PHP Класс Platformsh\Cli\Helper\ShellHelper

Наследование: extends Symfony\Component\Console\Helper\Helper, implements Platformsh\Cli\Helper\ShellHelperInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$defaultTimeout
$output Symfony\Component\Console\Output\OutputInterface

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

Метод Описание
__construct ( Symfony\Component\Console\Output\OutputInterface $output = null )
commandExists ( $command )
execute ( array $args, $dir = null, $mustRun = false, $quiet = true )
executeSimple ( string $commandline, string | null $dir = null ) : integer Execute a command, using STDIN, STDERR and STDOUT directly.
getName ( )
resolveCommand ( $command )
setOutput ( Symfony\Component\Console\Output\OutputInterface $output )

Защищенные методы

Метод Описание
findWhere ( string $command, boolean $noticeOnError = true ) : string | boolean Run 'where' or equivalent on a command.
runProcess ( Process $process, boolean $mustRun = false, boolean $quiet = true ) : integer | string

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

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

public __construct ( Symfony\Component\Console\Output\OutputInterface $output = null )
$output Symfony\Component\Console\Output\OutputInterface

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

public commandExists ( $command )

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

public execute ( array $args, $dir = null, $mustRun = false, $quiet = true )
$args array

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

Execute a command, using STDIN, STDERR and STDOUT directly.
public executeSimple ( string $commandline, string | null $dir = null ) : integer
$commandline string
$dir string | null
Результат integer The command's exit code (0 on success, a different integer on failure).

findWhere() защищенный Метод

Run 'where' or equivalent on a command.
protected findWhere ( string $command, boolean $noticeOnError = true ) : string | boolean
$command string
$noticeOnError boolean
Результат string | boolean A list of command paths (one per line) or false on failure.

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

public getName ( )

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

public resolveCommand ( $command )

runProcess() защищенный Метод

protected runProcess ( Process $process, boolean $mustRun = false, boolean $quiet = true ) : integer | string
$process Symfony\Component\Process\Process
$mustRun boolean
$quiet boolean
Результат integer | string

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

public setOutput ( Symfony\Component\Console\Output\OutputInterface $output )
$output Symfony\Component\Console\Output\OutputInterface

Описание свойств

$defaultTimeout защищенное свойство

protected $defaultTimeout

$output защищенное свойство

protected OutputInterface,Symfony\Component\Console\Output $output
Результат Symfony\Component\Console\Output\OutputInterface