| @@ 69-84 (lines=16) @@ | ||
| 66 | * @param string $message |
|
| 67 | * @return ClaimCheck |
|
| 68 | */ |
|
| 69 | private function storeMessageInS3($message) |
|
| 70 | { |
|
| 71 | $s3Client = $this->configuration->getS3Client(); |
|
| 72 | $s3BucketName = $this->configuration->getS3BucketName(); |
|
| 73 | $claimCheckFactory = $this->configuration->getClaimCheckFactory(); |
|
| 74 | ||
| 75 | $claimCheck = $claimCheckFactory->create(); |
|
| 76 | ||
| 77 | $s3Client->putObject([ |
|
| 78 | 'Bucket' => $s3BucketName, |
|
| 79 | 'Key' => $claimCheck->getS3Key(), |
|
| 80 | 'Body' => $message, |
|
| 81 | ]); |
|
| 82 | ||
| 83 | return $claimCheck; |
|
| 84 | } |
|
| 85 | } |
|
| 86 | ||
| @@ 172-187 (lines=16) @@ | ||
| 169 | * @param string $message |
|
| 170 | * @return ClaimCheck |
|
| 171 | */ |
|
| 172 | private function storeMessageInS3($message) |
|
| 173 | { |
|
| 174 | $s3Client = $this->configuration->getS3Client(); |
|
| 175 | $s3BucketName = $this->configuration->getS3BucketName(); |
|
| 176 | $claimCheckFactory = $this->configuration->getClaimCheckFactory(); |
|
| 177 | ||
| 178 | $claimCheck = $claimCheckFactory->create(); |
|
| 179 | ||
| 180 | $s3Client->putObject([ |
|
| 181 | 'Bucket' => $s3BucketName, |
|
| 182 | 'Key' => $claimCheck->getS3Key(), |
|
| 183 | 'Body' => $message, |
|
| 184 | ]); |
|
| 185 | ||
| 186 | return $claimCheck; |
|
| 187 | } |
|
| 188 | ||
| 189 | /** |
|
| 190 | * @param ClaimCheck $claimCheck |
|