PHP Класс Gush\Helper\ProcessHelper

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

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

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

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

Метод Описание
getName ( ) : string
getProcessBuilder ( string | string[] $command ) : Symfony\Component\Process\ProcessBuilder
probePhpCsFixer ( ) : string
runCommand ( string | array $command, boolean $allowFailures = false, Closure $callback = null ) : string Run a command through the ProcessBuilder.
runCommands ( array $commands ) Run a series of shell command through a Process.
setOutput ( Symfony\Component\Console\Output\OutputInterface $output )

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

Метод Описание
parseProcessArguments ( string $command ) : string[]

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

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

public getName ( ) : string
Результат string

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

public getProcessBuilder ( string | string[] $command ) : Symfony\Component\Process\ProcessBuilder
$command string | string[]
Результат Symfony\Component\Process\ProcessBuilder

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

protected parseProcessArguments ( string $command ) : string[]
$command string
Результат string[]

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

public probePhpCsFixer ( ) : string
Результат string

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

Run a command through the ProcessBuilder.
public runCommand ( string | array $command, boolean $allowFailures = false, Closure $callback = null ) : string
$command string | array
$allowFailures boolean
$callback Closure Callback for Process (e.g. for logging output in realtime)
Результат string

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

Run a series of shell command through a Process.
public runCommands ( array $commands )
$commands array

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

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

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

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

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