public getObjectUrl ( string $bucket, string $key, mixed $expires = null, array $args = [] ) : string | ||
$bucket | string | The name of the bucket where the object is located |
$key | string | The key of the object |
$expires | mixed | The time at which the URL should expire |
$args | array | Arguments to the GetObject command. Additionally you can specify a "Scheme" if you would like the URL to use a different scheme than what the client is configured to use |
Результат | string | The URL to the object |
public function getObjectUrl($bucket, $key, $expires = null, array $args = [])
{
return $this->instance->getObjectUrl($bucket, $key, $expires, $args);
}
/** * @inheritdoc */ public function getURL($key) { if ($this->cdnDomain) { return $this->cdnDomain . '/' . $key; } if (!$this->arr($this->recentFiles)->keyExists($key)) { $this->recentFiles[$key]['ObjectURL'] = $this->s3Client->getObjectUrl($this->bucket, $key); } return $this->recentFiles[$key]['ObjectURL']; }