Skip to content

Commit

Permalink
[DOC] Update S3Client invocation
Browse files Browse the repository at this point in the history
S3Client::factory is deprecated and this is the right way to instantiate
the class.
  • Loading branch information
jrjohnson committed Feb 14, 2019
1 parent 81391b8 commit 4f1d81e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/adapter/aws-s3-v3.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use Aws\S3\S3Client;
use League\Flysystem\AwsS3v3\AwsS3Adapter;
use League\Flysystem\Filesystem;

$client = S3Client::factory([
$client = new S3Client([
'credentials' => [
'key' => 'your-key',
'secret' => 'your-secret',
Expand Down Expand Up @@ -75,7 +75,7 @@ $adapter = new AwsS3Adapter($client, 'bucket-name', 'optional/path/prefix', [
If you're using a storage service which implements the S3 protocols, you can set the `base_url` configuration option when constructing the client.

```php
$client = S3Client::factory([
$client = new S3Client([
'base_url' => 'http://some.other.endpoint',
// ... other settings
]);
Expand Down

0 comments on commit 4f1d81e

Please sign in to comment.