/** * import swift credentials in OpenStack object */ private function importCredentials() { $this->anchor->importCredentials(array('token' => $this->credentials['token'], 'catalog' => array((object) array('endpoints' => array((object) array('region' => 'NCE', 'publicURL' => $this->credentials['endpoint'])), 'name' => 'cloudFiles', 'type' => 'object-store')))); }
/** * import swift credentials in OpenStack object */ private function importCredentials() { $endpoint = json_decode($this->params['swift_token'], TRUE)['endpoint']; $token = json_decode($this->params['swift_token'], TRUE)['token']; $this->anchor->importCredentials(array('token' => $token, 'catalog' => array((object) array('endpoints' => array((object) array('region' => 'NCE', 'publicURL' => $endpoint)), 'name' => 'cloudFiles', 'type' => 'object-store')))); }