public function __construct(App_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 App_Google_IO_Exception($error);
     }
     parent::__construct($client);
 }
 public function __construct(App_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 App_Google_IO_Exception($error);
     }
     parent::__construct($client);
 }