src/Transfer/Processor/Processor.php
protected function handleSources(array $sources)
    {
        $responses = array();

        foreach ($sources as $source) {
            list($adapter, $request) = $source;
            $responses[] = $this->handleSource($adapter, $request);
        }

        $iterator = new \AppendIterator();

        /** @var Response $response */
        foreach ($responses as $response) {
            $iterator->append($response->getIterator());
        }

        return $iterator;
    }
protected function handleSources(array $sources)
    {
        $responses = array();

        foreach ($sources as $source) {
            list($adapter, $request) = $source;
            $responses[] = $this->handleSource($adapter, $request);
        }

        $iterator = new \AppendIterator();

        /** @var Response $response */
        foreach ($responses as $response) {
            $iterator->append($response->getIterator());
        }

        return $iterator;
    }
protected function handleSources ( array $ sources ) { $ responses = array ( ) ; foreach ( $ sources as $ source ) { list ( $ adapter , $ request ) = $ source ; $ responses [ ] = $ this -> handleSource ( $ adapter , $ request ) ; } $ iterator = new \ AppendIterator ( ) ; /** @var Response $response */ foreach ( $ responses as $ response ) { $ iterator -> append ( $ response -> getIterator ( ) ) ; } return $ iterator ; }
Handles sources.

@param array $sources Sources

@return \Iterator Iterator for all source response objects
Handles sources .