Skip to content

Commit

Permalink
Update example to new eventloop and new S3 API
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonFrings committed Aug 25, 2021
1 parent 7c7c7a4 commit b11fb8e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,11 @@ Once [installed](#install), you can use the following code to read a file from
your S3 file storage:

```php
$loop = React\EventLoop\Factory::create();
$browser = new React\Http\Browser($loop);

$s3 = new Clue\React\S3\Client($browser, $key, $secret, $bucket, $region, $endpoint);
$s3 = new Clue\React\S3\S3Client($key, $secret, $bucket, $region, $endpoint);

$s3->read('example.txt')->then(function (string $contents) {
echo $contents;
});

$loop->run();
```

## Install
Expand Down

0 comments on commit b11fb8e

Please sign in to comment.