allow using 'bucket' to set the swift container

Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/2015/head
Robin Appelman 10 years ago
parent a77e7075f6
commit b72e5a2e4e
No known key found for this signature in database
GPG Key ID: 425003AC385454C5
  1. 4
      lib/private/Files/ObjectStore/Swift.php

@ -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';
}

Loading…
Cancel
Save