Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 5... Línea 5...
5
use Aws\Arn\S3\AccessPointArn;
5
use Aws\Arn\S3\AccessPointArn;
6
use Aws\Exception\MultipartUploadException;
6
use Aws\Exception\MultipartUploadException;
7
use Aws\Result;
7
use Aws\Result;
8
use Aws\S3\Exception\S3Exception;
8
use Aws\S3\Exception\S3Exception;
9
use GuzzleHttp\Promise\Coroutine;
9
use GuzzleHttp\Promise\Coroutine;
-
 
10
use GuzzleHttp\Promise\PromiseInterface;
10
use GuzzleHttp\Promise\PromisorInterface;
11
use GuzzleHttp\Promise\PromisorInterface;
11
use InvalidArgumentException;
12
use InvalidArgumentException;
Línea 12... Línea 13...
12
 
13
 
13
/**
14
/**
Línea 77... Línea 78...
77
     * fulfilled with the result of the CompleteMultipartUpload or CopyObject
78
     * fulfilled with the result of the CompleteMultipartUpload or CopyObject
78
     * operation or rejected with an exception.
79
     * operation or rejected with an exception.
79
     *
80
     *
80
     * @return Coroutine
81
     * @return Coroutine
81
     */
82
     */
82
    public function promise()
83
    public function promise(): PromiseInterface
83
    {
84
    {
84
        return Coroutine::of(function () {
85
        return Coroutine::of(function () {
85
            $headObjectCommand = $this->client->getCommand(
86
            $headObjectCommand = $this->client->getCommand(
86
                'HeadObject',
87
                'HeadObject',
87
                $this->options['params'] + $this->source
88
                $this->options['params'] + $this->source