From b11fb8eda41bcabcfef16ce58e492640929706a1 Mon Sep 17 00:00:00 2001 From: Simon Frings Date: Wed, 25 Aug 2021 13:35:25 +0200 Subject: [PATCH] Update example to new eventloop and new S3 API --- README.md | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/README.md b/README.md index effade4..707b277 100644 --- a/README.md +++ b/README.md @@ -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