class InputStream implements IteratorAggregate
Provides a way to continuously write to the input of a Process until the InputStream is closed.
onEmpty(callable $onEmpty = null) Sets a callback that is called when the write buffer becomes empty. | ||
write(resource|string|int|float|bool|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() |
Sets a callback that is called when the write buffer becomes empty.
callable | $onEmpty |
Appends an input to the write buffer.
resource|string|int|float|bool|Traversable|null | $input | The input to append as scalar, stream resource or \Traversable |
Closes the write buffer.
Tells whether the write buffer is closed or not.
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Process/InputStream.html