/** * Prepare the S3 connection for requests to this bucket. * * @param $settings */ private function _prepareForRequests($settings = null) { if (is_null($settings)) { $settings = $this->getSettings(); } if (is_null($this->_googleCloud)) { $this->_googleCloud = new \GC($settings->keyId, $settings->secret); } \GC::setAuth($settings->keyId, $settings->secret); }