Skip to content

Commit

Permalink
Use adapter for temporary URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
frankdejonge committed Oct 25, 2022
1 parent fff7a19 commit b476777
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Filesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public function temporaryUrl(string $path, DateTimeInterface $expiresAt, array $
$generator = $this->temporaryUrlGenerator ?: $this->adapter;

if ($generator instanceof TemporaryUrlGenerator) {
return $this->temporaryUrlGenerator->temporaryUrl($path, $expiresAt, $this->config->extend($config));
return $generator->temporaryUrl($path, $expiresAt, $this->config->extend($config));
}

throw UnableToGenerateTemporaryUrl::noGeneratorConfigured($path);
Expand Down

0 comments on commit b476777

Please sign in to comment.