Laravel\Envoy\ParallelSSH::gatherOutput PHP Метод

gatherOutput() защищенный Метод

Gather the output from all of the processes.
protected gatherOutput ( array $processes, Closure $callback ) : void
$processes array
$callback Closure
Результат void
    protected function gatherOutput(array $processes, Closure $callback)
    {
        foreach ($processes as $host => $process) {
            $methods = [Process::OUT => 'getIncrementalOutput', Process::ERR => 'getIncrementalErrorOutput'];
            foreach ($methods as $type => $method) {
                $output = $process->{$method}();
                if (!empty($output)) {
                    $callback($type, $host, $output);
                }
            }
        }
    }