Curl/MultiManager.php
public function addRequest(Request $request) {
        $oid = spl_object_hash($request);

        if(!isset($this->requests[$oid])) {
            $this->requests[$oid] = $request;
            curl_multi_add_handle($this->handle, $request->getHandle());
        }
        
        return $this;
    }
public function addRequest(Request $request) {
        $oid = spl_object_hash($request);

        if(!isset($this->requests[$oid])) {
            $this->requests[$oid] = $request;
            curl_multi_add_handle($this->handle, $request->getHandle());
        }
        
        return $this;
    }
public function addRequest ( Request $ request ) { $ oid = spl_object_hash ( $ request ) ; if ( ! isset ( $ this -> requests [ $ oid ] ) ) { $ this -> requests [ $ oid ] = $ request ; curl_multi_add_handle ( $ this -> handle , $ request -> getHandle ( ) ) ; } return $ this ; }
Add a cURL request to be processed in parallel

Alias of the curl_multi_add_handle function

@param Request $request A Request object to be executed
@return MultiManager $this
Add a cURL request to be processed in parallel