File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
src/ObjectStore/v1/Models Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -108,13 +108,19 @@ 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
+
116
+ public function download (array $ data = []): StreamInterface
114
117
{
118
+ $ data += ['name ' => $ this ->name , 'containerName ' => $ this ->containerName ];
119
+
115
120
/** @var ResponseInterface $response */
116
- $ response = $ this ->executeWithState ($ this ->api ->getObject ());
121
+ $ response = $ this ->execute ($ this ->api ->getObject (), $ data );
117
122
$ this ->populateHeaders ($ response );
123
+
118
124
return $ response ->getBody ();
119
125
}
120
126
You can’t perform that action at this time.
0 commit comments