Phalcon\Http\Client\Provider\Curl::__construct PHP Метод

__construct() публичный Метод

public __construct ( )
    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();
    }