public function __construct()
{
if (!self::isAvailable()) {
throw new ProviderException('CURL extension is not loaded');
}
$this->handle = curl_init();
if (!is_resource($this->handle)) {
throw new HttpException(curl_error($this->handle), 'curl');
}
$this->initOptions();
parent::__construct();
}