Skip to content

Commit af309bd

Browse files
committed
Merge branch '5.2' into 5.x
* 5.2: Updated XML and PHP configs too fix specifying http_version in YAML
2 parents 15a8f5b + d5c8d53 commit af309bd

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

http_client.rst

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,8 @@ To force HTTP/2 for ``http`` URLs, you need to enable it explicitly via the
848848
# config/packages/framework.yaml
849849
framework:
850850
http_client:
851-
http_version: '2.0'
851+
default_options:
852+
http_version: '2.0'
852853
853854
.. code-block:: xml
854855
@@ -862,7 +863,9 @@ To force HTTP/2 for ``http`` URLs, you need to enable it explicitly via the
862863
http://symfony.com/schema/dic/symfony https://symfony.com/schema/dic/symfony/symfony-1.0.xsd">
863864
864865
<framework:config>
865-
<framework:http-client http-version="2.0"/>
866+
<framework:http-client>
867+
<framework:default-options http-version="2.0"/>
868+
</framework-http-client>
866869
</framework:config>
867870
</container>
868871
@@ -871,7 +874,9 @@ To force HTTP/2 for ``http`` URLs, you need to enable it explicitly via the
871874
// config/packages/framework.php
872875
$container->loadFromExtension('framework', [
873876
'http_client' => [
874-
'http_version' => '2.0',
877+
'default_options' => [
878+
'http_version' => '2.0',
879+
],
875880
],
876881
]);
877882

0 commit comments

Comments
 (0)