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