Skip to content

Commit

Permalink
添加getTemporaryUrl方法
Browse files Browse the repository at this point in the history
  • Loading branch information
kalax2 committed Sep 5, 2024
1 parent 6ade0b4 commit d013569
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/ObsAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,17 @@ public function getUrl(string $path): string
return $url;
}

/**
* @param string $path
* @param DateTimeInterface $expiresAt
* @param array $config
* @return string
*/
public function getTemporaryUrl(string $path, DateTimeInterface $expiresAt, array $config): string
{
return $this->temporaryUrl($path, $expiresAt, new Config($config));
}

/**
* @param $path
* @return StreamInterface
Expand Down

0 comments on commit d013569

Please sign in to comment.