← All changes
|
includes/sdk/s3/Aws/S3/Crypto/S3EncryptionClient.php
+2
-1
1.0.2
→
1.4.2
View file →
| @@ -3,8 +3,9 @@ | ||
| 3 | 3 | namespace Dudlewebs\WPMCS\s3\Aws\S3\Crypto; |
| 4 | 4 | |
| 5 | 5 | use Dudlewebs\WPMCS\s3\Aws\Crypto\DecryptionTrait; |
| 6 | 6 | use Dudlewebs\WPMCS\s3\Aws\HashingStream; |
| 7 | +use Dudlewebs\WPMCS\s3\Aws\MetricsBuilder; | |
| 7 | 8 | use Dudlewebs\WPMCS\s3\Aws\PhpHash; |
| 8 | 9 | use Dudlewebs\WPMCS\s3\Aws\Crypto\AbstractCryptoClient; |
| 9 | 10 | use Dudlewebs\WPMCS\s3\Aws\Crypto\EncryptionTrait; |
| 10 | 11 | use Dudlewebs\WPMCS\s3\Aws\Crypto\MetadataEnvelope; |
| @@ -47,11 +48,11 @@ | ||
| 47 | 48 | * files for metadata storage. |
| 48 | 49 | */ |
| 49 | 50 | public function __construct(S3Client $client, $instructionFileSuffix = null) |
| 50 | 51 | { |
| 51 | - $this->appendUserAgent($client, 'feat/s3-encrypt/' . self::CRYPTO_VERSION); | |
| 52 | 52 | $this->client = $client; |
| 53 | 53 | $this->instructionFileSuffix = $instructionFileSuffix; |
| 54 | + MetricsBuilder::appendMetricsCaptureMiddleware($this->client->getHandlerList(), MetricsBuilder::S3_CRYPTO_V1N); | |
| 54 | 55 | } |
| 55 | 56 | private static function getDefaultStrategy() |
| 56 | 57 | { |
| 57 | 58 | return new HeadersMetadataStrategy(); |