/**
  * Get the Rackspace Cloud Files container.
  *
  * @param \OpenCloud\Rackspace $client
  * @param array                $config
  *
  * @return \OpenCloud\ObjectStore\Resource\Container
  */
 protected function getRackspaceContainer(Rackspace $client, array $config)
 {
     $urlType = Arr::get($config, 'url_type');
     $store = $client->objectStoreService('cloudFiles', $config['region'], $urlType);
     return $store->getContainer($config['container']);
 }
Beispiel #2
0
 /**
  * Get the specified configuration value.
  *
  * @param string $key
  * @param mixed  $default
  *
  * @return mixed
  */
 public function get($key, $default = null)
 {
     return Arr::get($this->items, $key, $default);
 }