PHP Class Gush\Helper\ProcessHelper

Inheritance: extends Symfony\Component\Console\Helper\Helper, implements Gush\Helper\OutputAwareInterface
Afficher le fichier Open project: gushphp/gush Class Usage Examples

Protected Properties

Свойство Type Description
$output Symfony\Component\Console\Output\OutputInterface

Méthodes publiques

Méthode Description
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 )

Méthodes protégées

Méthode Description
parseProcessArguments ( string $command ) : string[]

Method Details

getName() public méthode

public getName ( ) : string
Résultat string

getProcessBuilder() public méthode

public getProcessBuilder ( string | string[] $command ) : Symfony\Component\Process\ProcessBuilder
$command string | string[]
Résultat Symfony\Component\Process\ProcessBuilder

parseProcessArguments() protected méthode

protected parseProcessArguments ( string $command ) : string[]
$command string
Résultat string[]

probePhpCsFixer() public méthode

public probePhpCsFixer ( ) : string
Résultat string

runCommand() public méthode

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)
Résultat string

runCommands() public méthode

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

setOutput() public méthode

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

Property Details

$output protected_oe property

protected OutputInterface,Symfony\Component\Console\Output $output
Résultat Symfony\Component\Console\Output\OutputInterface