File tree 1 file changed +5
-3
lines changed
src/Illuminate/Filesystem
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -373,7 +373,7 @@ protected function getLocalUrl($path)
373
373
* Get a temporary URL for the file at the given path.
374
374
*
375
375
* @param string $path
376
- * @param \DateTime $expiration
376
+ * @param \DateTimeInterface $expiration
377
377
* @return string
378
378
*/
379
379
public function temporaryUrl ($ path , $ expiration )
@@ -383,15 +383,17 @@ public function temporaryUrl($path, $expiration)
383
383
$ client = $ adapter ->getClient ();
384
384
385
385
if (! $ adapter instanceof AwsS3Adapter) {
386
- throw new RuntimeException ('This driver does not support retrieving temporary URLs. ' );
386
+ throw new RuntimeException ('This driver does not support creating temporary URLs. ' );
387
387
}
388
388
389
389
$ command = $ client ->getCommand ('GetObject ' , [
390
390
'Bucket ' => $ adapter ->getBucket (),
391
391
'Key ' => $ adapter ->getPathPrefix ().$ path ,
392
392
]);
393
393
394
- return (string ) $ client ->createPresignedRequest ($ command , $ expiration )->getUri ();
394
+ return (string ) $ client ->createPresignedRequest (
395
+ $ command , $ expiration
396
+ )->getUri ();
395
397
}
396
398
397
399
/**
You can’t perform that action at this time.
0 commit comments