mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 14:23:17 -04:00
fix(S3): Adjust usage of guzzle promise
`Promise\promise_for` was deprecated and is now removed and replaced with the static API (`Create::promiseFor`). Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
parent
232279a551
commit
ae1f5cc56d
2 changed files with 3 additions and 3 deletions
|
|
@ -11,7 +11,7 @@ use Aws\Credentials\Credentials;
|
|||
use Aws\Exception\CredentialsException;
|
||||
use Aws\S3\Exception\S3Exception;
|
||||
use Aws\S3\S3Client;
|
||||
use GuzzleHttp\Promise;
|
||||
use GuzzleHttp\Promise\Create;
|
||||
use GuzzleHttp\Promise\RejectedPromise;
|
||||
use OCP\ICertificateManager;
|
||||
use Psr\Log\LoggerInterface;
|
||||
|
|
@ -178,7 +178,7 @@ trait S3ConnectionTrait {
|
|||
$secret = empty($this->params['secret']) ? null : $this->params['secret'];
|
||||
|
||||
if ($key && $secret) {
|
||||
return Promise\promise_for(
|
||||
return Create::promiseFor(
|
||||
new Credentials($key, $secret)
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ class S3Signature implements SignatureInterface {
|
|||
}
|
||||
}
|
||||
|
||||
$queryString = http_build_query($query, null, '&', PHP_QUERY_RFC3986);
|
||||
$queryString = http_build_query($query, '', '&', PHP_QUERY_RFC3986);
|
||||
|
||||
return $request->withUri($request->getUri()->withQuery($queryString));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue