Merge pull request #2015 from nextcloud/swift-bucket

allow using 'bucket' to set the swift container
This commit is contained in:
Lukas Reschke 2016-11-04 21:46:59 +01:00 committed by GitHub
commit a9547a2fd7

View file

@ -30,6 +30,7 @@ use OpenCloud\OpenStack;
use OpenCloud\Rackspace;
class Swift implements IObjectStore {
/**
* @var \OpenCloud\OpenStack
*/
@ -51,6 +52,9 @@ class Swift implements IObjectStore {
private $container;
public function __construct($params) {
if (isset($params['bucket'])) {
$params['container'] = $params['bucket'];
}
if (!isset($params['container'])) {
$params['container'] = 'owncloud';
}