Skip to content

Commit 538c603

Browse files
committed
minor symfony#14235 Update http_client.rst : HttpClient::Create() standalone (ybenhssaien)
This PR was submitted for the 5.1 branch but it was merged into the 4.4 branch instead. Discussion ---------- Update http_client.rst : HttpClient::Create() standalone The method `HttpClient::create(array $defaultOptions, ..)` accepts an array of default options as a parameter (without the `default_options` key) <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- fdba62f Update http_client.rst : HttpClient::Create() standalone
2 parents 9da4f0d + fdba62f commit 538c603

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

http_client.rst

+1-3
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,7 @@ You can configure the global options using the ``default_options`` option:
138138
.. code-block:: php-standalone
139139
140140
$client = HttpClient::create([
141-
'default_options' => [
142-
'max_redirects' => 7,
143-
],
141+
'max_redirects' => 7,
144142
]);
145143
146144
Some options are described in this guide:

0 commit comments

Comments
 (0)