PHP Интерфейс Platformsh\Cli\Helper\ShellHelperInterface

Показать файл Открыть проект Примеры использования интерфейса

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

Метод Описание
__construct ( Symfony\Component\Console\Output\OutputInterface $output = null )
commandExists ( string $command ) : boolean Check whether a shell command exists.
execute ( array $args, string | false $dir = null, boolean $mustRun = false, boolean $quiet = false ) : string | boolean Run a shell command, suppressing errors.
resolveCommand ( string $command ) : string Resolve the absolute path to a command.

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

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

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

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

Check whether a shell command exists.
public commandExists ( string $command ) : boolean
$command string
Результат boolean

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

Run a shell command, suppressing errors.
public execute ( array $args, string | false $dir = null, boolean $mustRun = false, boolean $quiet = false ) : string | boolean
$args array
$dir string | false
$mustRun boolean
$quiet boolean
Результат string | boolean The command's output or true on success, false on failure.

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

Resolve the absolute path to a command.
public resolveCommand ( string $command ) : string
$command string
Результат string