function InputStream::write
Appends an input to the write buffer.
Parameters
resource|string|int|float|bool|\Traversable|null $input The input to append as scalar,: stream resource or \Traversable
1 call to InputStream::write()
- InputStream::getIterator in vendor/
symfony/ process/ InputStream.php
File
-
vendor/
symfony/ process/ InputStream.php, line 43
Class
- InputStream
- Provides a way to continuously write to the input of a Process until the InputStream is closed.
Namespace
Symfony\Component\ProcessCode
public function write(mixed $input) : void {
if (null === $input) {
return;
}
if ($this->isClosed()) {
throw new RuntimeException(\sprintf('"%s" is closed.', static::class));
}
$this->input[] = ProcessUtils::validateInput(__METHOD__, $input);
}