PHP Class GrumPHP\Process\ProcessBuilder

Afficher le fichier Open project: phpro/grumphp Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( GrumPHP $config, ExternalCommand $externalCommandLocator, GrumPHP\IO\IOInterface $io ) ProcessBuilder constructor.
buildProcess ( ProcessArgumentsCollection $arguments ) : Process
createArgumentsForCommand ( string $command ) : ProcessArgumentsCollection

Private Methods

Méthode Description
getCommandLocation ( string $command ) : string
guardWindowsCmdMaxInputStringLimitation ( Process $process )
logProcessInVerboseMode ( Process $process )

Method Details

__construct() public méthode

ProcessBuilder constructor.
public __construct ( GrumPHP $config, ExternalCommand $externalCommandLocator, GrumPHP\IO\IOInterface $io )
$config GrumPHP\Configuration\GrumPHP
$externalCommandLocator GrumPHP\Locator\ExternalCommand
$io GrumPHP\IO\IOInterface

buildProcess() public méthode

public buildProcess ( ProcessArgumentsCollection $arguments ) : Process
$arguments GrumPHP\Collection\ProcessArgumentsCollection
Résultat Symfony\Component\Process\Process

createArgumentsForCommand() public méthode

public createArgumentsForCommand ( string $command ) : ProcessArgumentsCollection
$command string
Résultat GrumPHP\Collection\ProcessArgumentsCollection