File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -511,9 +511,10 @@ requests and the specific headers for each request:
511
511
512
512
# config/packages/framework.yaml
513
513
framework :
514
- http_client :
515
- headers :
516
- ' User-Agent ' : ' My Fancy App'
514
+ default_options :
515
+ http_client :
516
+ headers :
517
+ ' User-Agent ' : ' My Fancy App'
517
518
518
519
.. code-block :: xml
519
520
@@ -528,7 +529,9 @@ requests and the specific headers for each request:
528
529
529
530
<framework : config >
530
531
<framework : http-client >
531
- <framework : header name =" User-Agent" >My Fancy App</framework : header >
532
+ <framework : default-options >
533
+ <framework : header name =" User-Agent" >My Fancy App</framework : header >
534
+ </framework : default-options >
532
535
</framework-http-client >
533
536
</framework : config >
534
537
</container >
@@ -538,8 +541,10 @@ requests and the specific headers for each request:
538
541
// config/packages/framework.php
539
542
$container->loadFromExtension('framework', [
540
543
'http_client' => [
541
- 'headers' => [
542
- 'User-Agent' => 'My Fancy App',
544
+ 'default_options' => [
545
+ 'headers' => [
546
+ 'User-Agent' => 'My Fancy App',
547
+ ],
543
548
],
544
549
],
545
550
]);
You can’t perform that action at this time.
0 commit comments