Ejemplo n.º 1
0
 /**
  * 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'))));
 }
Ejemplo n.º 2
0
 /**
  * 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'))));
 }