minor #31008 [FrameworkBundle] for Psr18HttpClient configuration (nicolas-grekas)

This PR was merged into the 4.3-dev branch.

Discussion
----------

[FrameworkBundle] for Psr18HttpClient configuration

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

No need for autowiring actually here.

Commits
-------

bf89907dce [FrameworkBundle] for Psr18HttpClient configuration
This commit is contained in:
Fabien Potencier 2019-04-08 16:25:33 +02:00
commit 87c4cc1301

View File

@ -16,8 +16,10 @@
</service>
<service id="Symfony\Contracts\HttpClient\HttpClientInterface" alias="http_client" />
<service id="psr18.http_client" class="Symfony\Component\HttpClient\Psr18Client" autowire="true">
<service id="psr18.http_client" class="Symfony\Component\HttpClient\Psr18Client">
<argument type="service" id="http_client" />
<argument type="service" id="Psr\Http\Message\ResponseFactoryInterface" on-invalid="ignore" />
<argument type="service" id="Psr\Http\Message\StreamFactoryInterface" on-invalid="ignore" />
</service>
<service id="Psr\Http\Client\ClientInterface" alias="psr18.http_client" />
</services>