Skip to content

Commit

Permalink
Merge pull request #711 from josafa2018/2.3-uso-local
Browse files Browse the repository at this point in the history
Altera o UrlPresigner para permitir uso local usando filesystems.default
  • Loading branch information
edersoares authored Jun 15, 2020
2 parents bb8b158 + a2a166c commit 1480725
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Services/UrlPresigner.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ class UrlPresigner
{
public function getPresignedUrl(string $url) : string
{
switch (config('filesystems.cloud')) {
switch (config('filesystems.default')) {
case 'local':
return $url;
case 's3':
return (new S3UrlPresigner())->getPresignedUrl($url);
default:
throw new Exception('Method UrlPresigner::getPresignedUrl() not implemented for cloud filesystem: '. config('filesystems.cloud'));
throw new Exception('Method UrlPresigner::getPresignedUrl() not implemented for cloud filesystem: '. config('filesystems.default'));
}
}
}

0 comments on commit 1480725

Please sign in to comment.