Skip to content

Commit b0504ff

Browse files
committed
Fix documentation
1 parent 31c10a6 commit b0504ff

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,29 +27,29 @@ For a deeper `async` comprehension, you must check how ReactPHP engine work.
2727

2828
## Usage
2929

30-
The `ReactHttpAdapter` class need a [message factory](https://github.com/php-http/message-factory) in order to work:
30+
The `Client` class need a [message factory](https://github.com/php-http/message-factory) in order to work:
3131

3232
```php
33-
$client = new Http\Adapter\ReactHttpAdapter($messageFactory);
33+
$client = new Http\Adapter\React\Client($messageFactory);
3434
```
3535

3636
For more control, it can also be configured with a specific `React\EventLoop\LoopInterface` and / or a specific `React\HttpClient\Client`:
3737

3838
```php
39-
$loop = Http\Adapter\ReactFactory::buildEventLoop();
40-
$client = new Http\Adapter\ReactHttpAdapter($messageFactory, $loop);
39+
$loop = Http\Adapter\React\ReactFactory::buildEventLoop();
40+
$client = new Http\Adapter\React\Client($messageFactory, $loop);
4141

4242
//or
4343

44-
$reactClient = Http\Adapter\ReactFactory::buildHttpClient($loop);
45-
$client = new Http\Adapter\ReactHttpAdapter(
44+
$reactClient = Http\Adapter\React\ReactFactory::buildHttpClient($loop);
45+
$client = new Http\Adapter\React\Client(
4646
$messageFactory,
4747
$loop,
4848
$reactClient
4949
);
5050
```
5151

52-
If you don't want to use the `Http\Adapter\ReactFactory` to build instances you must rely on React documentation on Github: https://github.com/reactphp/http-client#example
52+
If you don't want to use the `Http\Adapter\React\ReactFactory` to build instances you must rely on React documentation on Github: https://github.com/reactphp/http-client#example
5353

5454
## Testing
5555

0 commit comments

Comments
 (0)