File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
src/ObjectStore/v1/Models Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -108,16 +108,18 @@ public function retrieve()
108
108
* distinct from fetching its metadata (a `HEAD` request). The body of an object is not fetched by default to
109
109
* improve performance when handling large objects.
110
110
*
111
+ * @param array $data {@see \OpenStack\ObjectStore\v1\Api::getObject}
112
+ *
111
113
* @return StreamInterface
112
114
*/
113
- public function download (): StreamInterface
115
+ public function download (array $ data = [] ): StreamInterface
114
116
{
115
- /** @var ResponseInterface $response */
116
- $ response = $ this ->executeWithState ($ this ->api ->getObject ());
117
+ $ response = $ this ->execute ($ this ->api ->getObject (), $ data + ['containerName ' => $ this ->containerName ]);
117
118
$ this ->populateHeaders ($ response );
118
119
return $ response ->getBody ();
119
120
}
120
121
122
+
121
123
/**
122
124
* {@inheritdoc}
123
125
*/
You can’t perform that action at this time.
0 commit comments