Class Symfony\Component\Process\InputStream

InheritanceSymfony\Component\Process\InputStream
ImplementsIteratorAggregate

Provides a way to continuously write to the input of a Process until the InputStream is closed.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
close() Closes the write buffer. Symfony\Component\Process\InputStream
getIterator() Symfony\Component\Process\InputStream
isClosed() Tells whether the write buffer is closed or not. Symfony\Component\Process\InputStream
onEmpty() Sets a callback that is called when the write buffer becomes empty. Symfony\Component\Process\InputStream
write() Appends an input to the write buffer. Symfony\Component\Process\InputStream

Method Details

close() public method

Closes the write buffer.

public void close ( )
getIterator() public method

public void getIterator ( )
isClosed() public method

Tells whether the write buffer is closed or not.

public void isClosed ( )
onEmpty() public method

Sets a callback that is called when the write buffer becomes empty.

public void onEmpty ( callable $onEmpty null )
$onEmpty
write() public method

Appends an input to the write buffer.

public void write ( $input )
$input