File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -217,8 +217,6 @@ public function uploadCommand($args)
217
217
function downloadCommand ($ args )
218
218
{
219
219
$ args = $ this ->fixTypes ($ args , false );
220
- $ streamWrapper = new \MongoDB \GridFS \StreamWrapper ();
221
- $ streamWrapper ->register ($ this ->manager );
222
220
$ stream = fopen ('php://temp ' , 'w+ ' );
223
221
$ this ->bucket ->downloadToStream ($ args ['id ' ], $ stream );
224
222
rewind ($ stream );
@@ -234,8 +232,6 @@ function deleteCommand($args)
234
232
function download_by_nameCommand ($ args )
235
233
{
236
234
$ args = $ this ->fixTypes ($ args , false );
237
- $ streamWrapper = new \MongoDB \GridFS \StreamWrapper ();
238
- $ streamWrapper ->register ($ this ->manager );
239
235
$ stream = fopen ('php://temp ' , 'w+ ' );
240
236
if (isset ($ args ['options ' ]['revision ' ])) {
241
237
$ this ->bucket ->downloadToStreamByName ($ args ['filename ' ], $ stream , $ args ['options ' ]['revision ' ]);
You can’t perform that action at this time.
0 commit comments