Skip to content

Commit

Permalink
Adding signature information to the getObjectUrl() docblock. Closes a…
Browse files Browse the repository at this point in the history
  • Loading branch information
mtdowling committed May 4, 2015
1 parent da120ab commit 1d63ffb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Aws/S3/S3Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,12 @@ public function createPresignedUrl(RequestInterface $request, $expires)
* Returns the URL to an object identified by its bucket and key. If an expiration time is provided, the URL will
* be signed and set to expire at the provided time.
*
* Note: This method does not ensure that the generated URL is valid. For example, the bucket referenced may not
* exist, the key referenced may not exist, and the URL might include parameters that require it to be signed.
* If you need to use parameters that require a signed URL (e.g., ResponseCacheControl), then you must sign the
* URL either by providing an $expires argument or by signing the URL returned by this method in some other
* manner.
*
* @param string $bucket The name of the bucket where the object is located
* @param string $key The key of the object
* @param mixed $expires The time at which the URL should expire
Expand Down

0 comments on commit 1d63ffb

Please sign in to comment.