PHP Class Neos\Flow\Tests\Features\Bootstrap\SubProcess\SubProcess

Usage: $subProcess = new SubProcess($applicationContext); $subProcessResponse = $subProcess->execute('some:flow:command');
Mostra file Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Property Type Description
$context Neos\Flow\Core\ApplicationContext
$pipes array
$subProcess resource | boolean

Public Methods

Method Description
__construct ( ApplicationContext $context )
execute ( string $commandLine ) : string
quit ( ) : void Cleanly terminates the given sub process

Protected Methods

Method Description
getSubProcessResponse ( ) : string Returns the currently pending response from the sub process
launchSubProcess ( ) : array Launch sub process

Method Details

__construct() public method

public __construct ( ApplicationContext $context )
$context Neos\Flow\Core\ApplicationContext

execute() public method

public execute ( string $commandLine ) : string
$commandLine string
return string

getSubProcessResponse() protected method

Returns the currently pending response from the sub process
protected getSubProcessResponse ( ) : string
return string

launchSubProcess() protected method

Launch sub process
protected launchSubProcess ( ) : array
return array The new sub process and its STDIN, STDOUT, STDERR pipes – or FALSE if an error occurred.

quit() public method

Cleanly terminates the given sub process
public quit ( ) : void
return void

Property Details

$context protected_oe property

protected ApplicationContext,Neos\Flow\Core $context
return Neos\Flow\Core\ApplicationContext

$pipes protected_oe property

protected array $pipes
return array

$subProcess protected_oe property

protected resource|bool $subProcess
return resource | boolean