Skip to content

Commit

Permalink
[9.x] Add method to AwsS3V3Adapter (#41079)
Browse files Browse the repository at this point in the history
* Add getClient method

* Update AwsS3V3Adapter.php

Co-authored-by: Taylor Otwell <[email protected]>
  • Loading branch information
dododedodonl and taylorotwell authored Feb 17, 2022
1 parent 788a18f commit d649c09
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Illuminate/Filesystem/AwsS3V3Adapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,14 @@ public function temporaryUrl($path, $expiration, array $options = [])

return (string) $uri;
}

/**
* Get the underlying S3 client.
*
* @return \Aws\S3\S3Client
*/
public function getClient()
{
return $this->client;
}
}

1 comment on commit d649c09

@iamfarhad
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why you dont use return type hint?

Please sign in to comment.