validation-bugsnag-email

This commit is contained in:
RafficMohammed
2023-01-31 13:17:59 +05:30
parent 2ec836b447
commit 9dd3f53910
769 changed files with 20242 additions and 14060 deletions

View File

@@ -27,6 +27,7 @@ class ObjectUploader implements PromisorInterface
'params' => [],
'part_size' => null,
];
private $addContentMD5;
/**
* @param S3ClientInterface $client The S3 Client used to execute
@@ -59,6 +60,9 @@ class ObjectUploader implements PromisorInterface
$this->body = Psr7\Utils::streamFor($body);
$this->acl = $acl;
$this->options = $options + self::$defaults;
// Handle "add_content_md5" option.
$this->addContentMD5 = isset($options['add_content_md5'])
&& $options['add_content_md5'] === true;
}
/**
@@ -83,6 +87,7 @@ class ObjectUploader implements PromisorInterface
'Key' => $this->key,
'Body' => $this->body,
'ACL' => $this->acl,
'AddContentMD5' => $this->addContentMD5
] + $this->options['params']);
if (is_callable($this->options['before_upload'])) {
$this->options['before_upload']($command);