Skip to content

Commit 6efc1ab

Browse files
committed
minor symfony#13916 Move HTTP client docs from components to guides (wouterj)
This PR was squashed before being merged into the 4.4 branch. Discussion ---------- Move HTTP client docs from components to guides The component docs are actually very similar to the framework guide :). The biggest update is adding framework config examples to all examples showing global configuration and moving the framework integration section more to the start of the article. We once added `php-standalone` and `php-symfony` tabs to the configuration blocks, which allow showing the same code for standalone and in-framework usage. This currently is used only in the Form component docs: https://symfony.com/doc/current/components/form.html#creating-a-simple-form I heavily used this in the article, so we can show both code examples in a concise matter. Please let me know what you think! :) Commits ------- 619e030 Move HTTP client docs from components to guides
2 parents 1251f3b + 619e030 commit 6efc1ab

File tree

4 files changed

+562
-214
lines changed

4 files changed

+562
-214
lines changed

_build/redirection_map

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@
482482
/doctrine/pdo_session_storage /session/database
483483
/doctrine/mongodb_session_storage /session/database
484484
/components/dotenv https://github.com/symfony/dotenv
485-
/components/mercure https://github.com/symfony/mercure
485+
/components/mercure /mercure
486486
/components/polyfill_apcu https://github.com/symfony/polyfill-apcu
487487
/components/polyfill_ctype https://github.com/symfony/polyfill-ctype
488488
/components/polyfill_iconv https://github.com/symfony/polyfill-iconv
@@ -504,3 +504,4 @@
504504
/components/error_handler https://github.com/symfony/error-handler
505505
/components/class_loader https://github.com/symfony/class-loader
506506
/frontend/encore/versus-assetic /frontend
507+
/components/http_client /http_client

components/browser_kit.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The BrowserKit Component
1313
In Symfony versions prior to 4.3, the BrowserKit component could only make
1414
internal requests to your application. Starting from Symfony 4.3, this
1515
component can also :ref:`make HTTP requests to any public site <component-browserkit-external-requests>`
16-
when using it in combination with the :doc:`HttpClient component </components/http_client>`.
16+
when using it in combination with the :doc:`HttpClient component </http_client>`.
1717

1818
Installation
1919
------------
@@ -295,7 +295,7 @@ So far, all the examples in this article have assumed that you are making
295295
internal requests to your own application. However, you can run the exact same
296296
examples when making HTTP requests to external web sites and applications.
297297

298-
First, install and configure the :doc:`HttpClient component </components/http_client>`.
298+
First, install and configure the :doc:`HttpClient component </http_client>`.
299299
Then, use the :class:`Symfony\\Component\\BrowserKit\\HttpBrowser` to create
300300
the client that will make the external HTTP requests::
301301

0 commit comments

Comments
 (0)