Symfony\Component\Process\Process::readPipes PHP Method

readPipes() private method

Reads pipes, executes callback.
private readPipes ( boolean $blocking, boolean $close )
$blocking boolean Whether to use blocking calls or not
$close boolean Whether to close file handles or not
    private function readPipes($blocking, $close)
    {
        $result = $this->processPipes->readAndWrite($blocking, $close);
        $callback = $this->callback;
        foreach ($result as $type => $data) {
            if (3 !== $type) {
                $callback($type === self::STDOUT ? self::OUT : self::ERR, $data);
            } elseif (!isset($this->fallbackStatus['signaled'])) {
                $this->fallbackStatus['exitcode'] = (int) $data;
            }
        }
    }