public function __construct(Google_Client $client) { if (!class_exists('Guzzle\\Http\\Client')) { $error = 'Cannot find class Guzzle\\Http\\Client'; $client->getLogger()->critical($error); throw new Google_IO_Exception($error); } parent::__construct($client); }
public function __construct(Google_Client $client) { if (!extension_loaded('curl')) { $error = 'The cURL IO handler requires the cURL extension to be enabled'; $client->getLogger()->critical($error); throw new Google_IO_Exception($error); } parent::__construct($client); }
public function __construct(Google_Client $client) { if (!ini_get('allow_url_fopen')) { $error = 'The stream IO handler requires the allow_url_fopen runtime ' . 'configuration to be enabled'; $client->getLogger()->critical($error); throw new Google_IO_Exception($error); } parent::__construct($client); }
public function __construct(Google_Client $client) { if (!extension_loaded('curl')) { $error = 'The cURL IO handler requires the cURL extension to be enabled'; $client->getLogger()->critical($error); throw new Google_IO_Exception($error); } parent::__construct($client); $this->disableProxyWorkaround = $this->client->getClassConfig('Google_IO_Curl', 'disable_proxy_workaround'); }
public function __construct(Google_Client $client) { if (!extension_loaded('curl')) { $error = 'The cURL IO handler requires the cURL extension to be enabled'; $client->getLogger()->critical($error); //throw new Google_IO_Exception($error); echo json_encode(array('status' => FALSE, 'response-code' => 400, 'response' => $error, 'message' => $error)); die; } parent::__construct($client); }
public function __construct(Google_Client $client) { if (!ini_get('allow_url_fopen')) { $error = 'The stream IO handler requires the allow_url_fopen runtime ' . 'configuration to be enabled'; $client->getLogger()->critical($error); //throw new Google_IO_Exception($error); echo json_encode(array('status' => FALSE, 'response-code' => 400, 'response' => $error, 'message' => '')); die; } parent::__construct($client); }