Exemplo n.º 1
0
 /**
  * Initialization hook
  *
  * Checks the availability of Curl_http
  */
 protected function _init()
 {
     // @codeCoverageIgnoreStart
     if (!function_exists('curl_init')) {
         throw new Solarium_Exception('cURL is not available, install it to use the CurlHttp adapter');
     }
     parent::_init();
     // @codeCoverageIgnoreEnd
 }
Exemplo n.º 2
0
 /**
  * Initialization hook
  *
  * Checks the availability of pecl_http
  */
 protected function _init()
 {
     // @codeCoverageIgnoreStart
     if (!class_exists('HttpRequest', false)) {
         throw new Solarium_Exception('Pecl_http is not available, install it to use the PeclHttp adapter');
     }
     parent::_init();
     // @codeCoverageIgnoreEnd
 }