Skip to content

Commit 1ad7353

Browse files
committed
Small improvements
1 parent 4107cd2 commit 1ad7353

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/HttpClientRouter.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*
1414
* @author Joel Wurtz <[email protected]>
1515
*/
16-
class HttpClientRouter implements HttpClient, HttpAsyncClient
16+
final class HttpClientRouter implements HttpClient, HttpAsyncClient
1717
{
1818
/**
1919
* @var array
@@ -23,21 +23,21 @@ class HttpClientRouter implements HttpClient, HttpAsyncClient
2323
/**
2424
* {@inheritdoc}
2525
*/
26-
public function sendAsyncRequest(RequestInterface $request)
26+
public function sendRequest(RequestInterface $request)
2727
{
2828
$client = $this->chooseHttpClient($request);
2929

30-
return $client->sendAsyncRequest($request);
30+
return $client->sendRequest($request);
3131
}
3232

3333
/**
3434
* {@inheritdoc}
3535
*/
36-
public function sendRequest(RequestInterface $request)
36+
public function sendAsyncRequest(RequestInterface $request)
3737
{
3838
$client = $this->chooseHttpClient($request);
3939

40-
return $client->sendRequest($request);
40+
return $client->sendAsyncRequest($request);
4141
}
4242

4343
/**

0 commit comments

Comments
 (0)