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

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

Protected Properties

Свойство Type Description
$context Neos\Flow\Core\ApplicationContext
$pipes array
$subProcess resource | boolean

Méthodes publiques

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

Méthodes protégées

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

Method Details

__construct() public méthode

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

execute() public méthode

public execute ( string $commandLine ) : string
$commandLine string
Résultat string

getSubProcessResponse() protected méthode

Returns the currently pending response from the sub process
protected getSubProcessResponse ( ) : string
Résultat string

launchSubProcess() protected méthode

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

quit() public méthode

Cleanly terminates the given sub process
public quit ( ) : void
Résultat void

Property Details

$context protected_oe property

protected ApplicationContext,Neos\Flow\Core $context
Résultat Neos\Flow\Core\ApplicationContext

$pipes protected_oe property

protected array $pipes
Résultat array

$subProcess protected_oe property

protected resource|bool $subProcess
Résultat resource | boolean