Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 2... Línea 2...
2
namespace Aws\S3;
2
namespace Aws\S3;
Línea 3... Línea 3...
3
 
3
 
4
use Aws;
4
use Aws;
5
use Aws\CommandInterface;
5
use Aws\CommandInterface;
-
 
6
use Aws\Exception\AwsException;
6
use Aws\Exception\AwsException;
7
use Aws\MetricsBuilder;
7
use GuzzleHttp\Promise;
8
use GuzzleHttp\Promise;
8
use GuzzleHttp\Promise\PromiseInterface;
9
use GuzzleHttp\Promise\PromiseInterface;
9
use GuzzleHttp\Promise\PromisorInterface;
10
use GuzzleHttp\Promise\PromisorInterface;
Línea 137... Línea 138...
137
        }
138
        }
Línea 138... Línea 139...
138
 
139
 
139
        // Handle "add_content_md5" option.
140
        // Handle "add_content_md5" option.
140
        $this->addContentMD5 = isset($options['add_content_md5'])
141
        $this->addContentMD5 = isset($options['add_content_md5'])
-
 
142
            && $options['add_content_md5'] === true;
-
 
143
        MetricsBuilder::appendMetricsCaptureMiddleware(
-
 
144
            $this->client->getHandlerList(),
-
 
145
            MetricsBuilder::S3_TRANSFER
141
            && $options['add_content_md5'] === true;
146
        );
Línea 142... Línea 147...
142
    }
147
    }
143
 
148
 
144
    /**
149
    /**
145
     * Transfers the files.
150
     * Transfers the files.
146
     *
151
     *
147
     * @return PromiseInterface
152
     * @return PromiseInterface
148
     */
153
     */
149
    public function promise()
154
    public function promise(): PromiseInterface
150
    {
155
    {
151
        // If the promise has been created, just return it.
156
        // If the promise has been created, just return it.
152
        if (!$this->promise) {
157
        if (!$this->promise) {