Skip to content

Commit 09f858a

Browse files
author
Ivan Kurnosov
committed
Deprecated HttpClient service, added ClientInterface
Fixes php-http#425
1 parent 1b23561 commit 09f858a

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
The change log describes what is "Added", "Removed", "Changed" or "Fixed" between each release.
44

5+
# unreleased
6+
7+
- Marked `Http\Client\HttpClient` service as deprecated (#425).
8+
- Added `Psr\Http\Client\ClientInterface` service (#425).
9+
510
# 1.27.1 - 2023-03-03
611

712
- Added `: void` to `Collector::reset` to avoid PHP warning.

src/Resources/config/services.xml

+4-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@
4747
<service id="httplug.client.default" class="Http\Client\HttpClient">
4848
<factory class="Http\Discovery\HttpClientDiscovery" method="find" />
4949
</service>
50-
<service id="Http\Client\HttpClient" alias="httplug.client" public="false" />
50+
<service id="Http\Client\HttpClient" alias="httplug.client" public="false">
51+
<deprecated />
52+
</service>
53+
<service id="Psr\Http\Client\ClientInterface" alias="httplug.client" public="false" />
5154

5255
<!-- Discovery for PSR-18 -->
5356
<service id="httplug.psr18_client.default" class="Psr\Http\Client\ClientInterface">

0 commit comments

Comments
 (0)