From 4f1d81e34026b1d29d97d16408d3aa7b1649bf92 Mon Sep 17 00:00:00 2001 From: Jonathan Johnson Date: Thu, 14 Feb 2019 13:09:00 -0800 Subject: [PATCH] [DOC] Update S3Client invocation S3Client::factory is deprecated and this is the right way to instantiate the class. --- docs/adapter/aws-s3-v3.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/adapter/aws-s3-v3.md b/docs/adapter/aws-s3-v3.md index 09015b8b8..e07af5f97 100644 --- a/docs/adapter/aws-s3-v3.md +++ b/docs/adapter/aws-s3-v3.md @@ -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', @@ -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 ]);