Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. InputStream.php

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\Process

Code

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);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal