Example #1
0
 /**
  * Constructor.
  * You should pass a URI string to the constructor to initialise a specific URI.
  *
  * @param   string  $uri  The URI string
  *
  * @throws Exception
  */
 public function __construct($uri = null)
 {
     if (!function_exists('curl_init')) {
         throw new Exception('cURL is not available');
     }
     parent::__construct($uri);
 }