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:
commit
87c4cc1301
@ -16,8 +16,10 @@
|
|||||||
</service>
|
</service>
|
||||||
<service id="Symfony\Contracts\HttpClient\HttpClientInterface" alias="http_client" />
|
<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="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>
|
||||||
<service id="Psr\Http\Client\ClientInterface" alias="psr18.http_client" />
|
<service id="Psr\Http\Client\ClientInterface" alias="psr18.http_client" />
|
||||||
</services>
|
</services>
|
||||||
|
Reference in New Issue
Block a user