public function __construct(array $settings = array()) { parent::__construct($settings); $this->conn = new Rackspace($settings['params']['endpoint'], array('username' => $settings['params']['api_user'], 'apiKey' => $settings['params']['api_key'])); $this->conn->SetDefaults('ObjectStore', 'cloudFiles', $settings['params']['region']); try { $this->ostore = $this->conn->ObjectStore(); } catch (\OpenCloud\Common\Exceptions\HttpError $e) { // @todo throw $e; } }