Skip to content

Commit b11fb8e

Browse files
committed
Update example to new eventloop and new S3 API
1 parent 7c7c7a4 commit b11fb8e

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

README.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,11 @@ Once [installed](#install), you can use the following code to read a file from
1515
your S3 file storage:
1616

1717
```php
18-
$loop = React\EventLoop\Factory::create();
19-
$browser = new React\Http\Browser($loop);
20-
21-
$s3 = new Clue\React\S3\Client($browser, $key, $secret, $bucket, $region, $endpoint);
18+
$s3 = new Clue\React\S3\S3Client($key, $secret, $bucket, $region, $endpoint);
2219

2320
$s3->read('example.txt')->then(function (string $contents) {
2421
echo $contents;
2522
});
26-
27-
$loop->run();
2823
```
2924

3025
## Install

0 commit comments

Comments
 (0)