Skip to content

Commit

Permalink
Merge pull request #1005 from jrjohnson/s3-docs
Browse files Browse the repository at this point in the history
[DOC] Update S3Client invocation
  • Loading branch information
frankdejonge committed Mar 18, 2019
2 parents 29ab800 + 4f1d81e commit 238711d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/adapter/aws-s3-v3.md
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 238711d

Please sign in to comment.