Interface Symfony\Component\Process\Pipes\PipesInterface

Implemented bySymfony\Component\Process\Pipes\AbstractPipes, Symfony\Component\Process\Pipes\UnixPipes, Symfony\Component\Process\Pipes\WindowsPipes

PipesInterface manages descriptors and pipes for the use of proc_open.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
areOpen() Returns if the current state has open file handles or pipes. Symfony\Component\Process\Pipes\PipesInterface
close() Closes file handles and pipes. Symfony\Component\Process\Pipes\PipesInterface
getDescriptors() Returns an array of descriptors for the use of proc_open. Symfony\Component\Process\Pipes\PipesInterface
getFiles() Returns an array of filenames indexed by their related stream in case these pipes use temporary files. Symfony\Component\Process\Pipes\PipesInterface
haveReadSupport() Returns if pipes are able to read output. Symfony\Component\Process\Pipes\PipesInterface
readAndWrite() Reads data in file handles and pipes. Symfony\Component\Process\Pipes\PipesInterface

Method Details

areOpen() public abstract method

Returns if the current state has open file handles or pipes.

public abstract bool areOpen ( )
close() public abstract method

Closes file handles and pipes.

public abstract void close ( )
getDescriptors() public abstract method

Returns an array of descriptors for the use of proc_open.

public abstract array getDescriptors ( )
getFiles() public abstract method

Returns an array of filenames indexed by their related stream in case these pipes use temporary files.

public abstract string[] getFiles ( )
haveReadSupport() public abstract method

Returns if pipes are able to read output.

public abstract bool haveReadSupport ( )
readAndWrite() public abstract method

Reads data in file handles and pipes.

public abstract string[] readAndWrite ( $blocking, $close false )
$blocking bool

Whether to use blocking calls or not

$close bool

Whether to close pipes if they've reached EOF

return string[]

An array of read data indexed by their fd