src/MultiCurlManager.php
protected function executeRequest(Request $request)
    {
        $index = array_search($request, $this->waitingRequests);
        if ($index !== false) {
            unset($this->waitingRequests[$index]);
            $this->hydrateCurlFromRequest($request, $request->getCurl())
                 ->triggerCallback($request->getOnInitializeCallback(), $request);

            $this->multiCurl->addCurl($request->getCurl());
            $this->runningRequests[] = $request;
            $this->executeMultiCurl();
        }
        return $this;
    }
protected function executeRequest(Request $request)
    {
        $index = array_search($request, $this->waitingRequests);
        if ($index !== false) {
            unset($this->waitingRequests[$index]);
            $this->hydrateCurlFromRequest($request, $request->getCurl())
                 ->triggerCallback($request->getOnInitializeCallback(), $request);

            $this->multiCurl->addCurl($request->getCurl());
            $this->runningRequests[] = $request;
            $this->executeMultiCurl();
        }
        return $this;
    }
protected function executeRequest ( Request $ request ) { $ index = array_search ( $ request , $ this -> waitingRequests ) ; if ( $ index !== false ) { unset ( $ this -> waitingRequests [ $ index ] ) ; $ this -> hydrateCurlFromRequest ( $ request , $ request -> getCurl ( ) ) -> triggerCallback ( $ request -> getOnInitializeCallback ( ) , $ request ) ; $ this -> multiCurl -> addCurl ( $ request -> getCurl ( ) ) ; $ this -> runningRequests [ ] = $ request ; $ this -> executeMultiCurl ( ) ; } return $ this ; }
Executes the specified request, if it is still waiting.
@param Request $request
@return $this
Executes the specified request if it is still waiting .