You are here

public function Process::setStdin in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/process/Process.php \Symfony\Component\Process\Process::setStdin()

Sets the contents of STDIN.

Parameters

string|null $stdin The new contents:

Return value

self The current Process instance

Throws

LogicException In case the process is running

InvalidArgumentException In case the argument is invalid

Deprecated

since version 2.5, to be removed in 3.0. Use setInput() instead.

File

vendor/symfony/process/Process.php, line 1078

Class

Process
Process is a thin wrapper around proc_* functions to easily start independent PHP processes.

Namespace

Symfony\Component\Process

Code

public function setStdin($stdin) {
  @trigger_error('The ' . __METHOD__ . ' method is deprecated since version 2.5 and will be removed in 3.0. Use the setInput() method instead.', E_USER_DEPRECATED);
  return $this
    ->setInput($stdin);
}