InputStream

class InputStream implements IteratorAggregate

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

Methods

onEmpty(callable $onEmpty = null)

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

write(resource|scalar|Traversable|null $input)

Appends an input to the write buffer.

close()

Closes the write buffer.

isClosed()

Tells whether the write buffer is closed or not.

getIterator()

Details

onEmpty(callable $onEmpty = null)

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

Parameters

callable $onEmpty

write(resource|scalar|Traversable|null $input)

Appends an input to the write buffer.

Parameters

resource|scalar|Traversable|null $input The input to append as stream resource, scalar or \Traversable

close()

Closes the write buffer.

isClosed()

Tells whether the write buffer is closed or not.

getIterator()

doc_Symfony
2016-10-28 06:21:24
Comments
Leave a Comment

Please login to continue.