protected function getClient(array $auth)
    {
        $client = new OpenStackRackspace($auth['endpoint'], [
            'username' => $auth['username'],
            'apiKey'   => $auth['apiKey'],
        ]);

        $urlType = array_get($auth, 'internal', false) ? 'internalURL' : 'publicURL';

        return $client->objectStoreService('cloudFiles', $auth['region'], $urlType)->getContainer($auth['container']);
    }
protected function getClient(array $auth)
    {
        $client = new OpenStackRackspace($auth['endpoint'], [
            'username' => $auth['username'],
            'apiKey'   => $auth['apiKey'],
        ]);

        $urlType = array_get($auth, 'internal', false) ? 'internalURL' : 'publicURL';

        return $client->objectStoreService('cloudFiles', $auth['region'], $urlType)->getContainer($auth['container']);
    }
protected function getClient ( array $ auth ) { $ client = new OpenStackRackspace ( $ auth [ 'endpoint' ] , [ 'username' => $ auth [ 'username' ] , 'apiKey' => $ auth [ 'apiKey' ] , ] ) ; $ urlType = array_get ( $ auth , 'internal' , false ) ? 'internalURL' : 'publicURL' ; return $ client -> objectStoreService ( 'cloudFiles' , $ auth [ 'region' ] , $ urlType ) -> getContainer ( $ auth [ 'container' ] ) ; }
Get the rackspace client.

@param string[] $auth

@return \OpenCloud\ObjectStore\Resource\Container
Get the rackspace client .