PHP Class GrumPHP\Process\ProcessBuilder

Mostra file Open project: phpro/grumphp Class Usage Examples

Public Methods

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

Private Methods

Method Description
getCommandLocation ( string $command ) : string
guardWindowsCmdMaxInputStringLimitation ( Process $process )
logProcessInVerboseMode ( Process $process )

Method Details

__construct() public method

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 method

public buildProcess ( ProcessArgumentsCollection $arguments ) : Process
$arguments GrumPHP\Collection\ProcessArgumentsCollection
return Symfony\Component\Process\Process

createArgumentsForCommand() public method

public createArgumentsForCommand ( string $command ) : ProcessArgumentsCollection
$command string
return GrumPHP\Collection\ProcessArgumentsCollection