public static function CurlMulti::getInstance

Get a cached instance of the curl multi object

Return value

CurlMulti

1 call to CurlMulti::getInstance()

File

drupal/core/vendor/guzzle/http/Guzzle/Http/Curl/CurlMulti.php, line 86

Class

CurlMulti
Send { This implementation allows callers to send blocking requests that return back to the caller when their requests complete, regardless of whether or not previously sending requests in the curl_multi object have completed. The implementation…

Namespace

Guzzle\Http\Curl

Code

public static function getInstance() {

  // @codeCoverageIgnoreStart
  if (!self::$instance) {
    self::$instance = new self();
  }

  // @codeCoverageIgnoreEnd
  return self::$instance;
}