Skip to content

Commit 488b9a7

Browse files
authored
Merge pull request #561 from dunglas/patch-1
docs: use Symfony HttpClient by default
2 parents 440f243 + 5bc1730 commit 488b9a7

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

Resources/doc/overview.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,17 @@ that the FOSHttpCache_ library needs a ``psr/http-message-implementation`` and
99
``php-http/client-implementation``. If your project does not contain one,
1010
composer will complain that it did not find ``psr/http-message-implementation``.
1111

12-
To install the bundle together with Guzzle, run:
12+
To install the bundle together with Symfony HttpClient, run:
1313

1414
.. code-block:: bash
1515
16-
$ composer require friendsofsymfony/http-cache-bundle guzzlehttp/psr7 php-http/guzzle6-adapter
16+
$ composer require friendsofsymfony/http-cache-bundle symfony/http-client nyholm/psr7 guzzlehttp/promises
1717
18-
If you want to use something else than Guzzle 6, see Packagist for a list of
18+
If you want to use something else than Symfony HttpClient, see Packagist for a list of
1919
available `client implementations`_.
2020

21-
Then add the bundle to your application:
21+
If you use an old version of Symfony, you
22+
must manually register the bundle to your application:
2223

2324
.. code-block:: php
2425
@@ -51,7 +52,7 @@ SensioFrameworkExtraBundle_:
5152
5253
$ composer require sensio/framework-extra-bundle
5354
54-
And include it in your project::
55+
And , if you don't use a recent version of Symfony, include it in your project::
5556

5657
<?php
5758
// app/AppKernel.php

Resources/doc/reference/configuration/proxy-client.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ varnish
2424

2525
.. code-block:: yaml
2626
27-
# app/config/config.yml
27+
# config/packages/fos_http_cache.yaml
2828
fos_http_cache:
2929
proxy_client:
3030
varnish:
@@ -80,7 +80,7 @@ URL may contain a path. If you access your web application on a port other than
8080

8181
.. code-block:: yaml
8282
83-
# app/config/config.yml
83+
# config/packages/fos_http_cache.yaml
8484
fos_http_cache:
8585
proxy_client:
8686
varnish:
@@ -139,7 +139,7 @@ nginx
139139

140140
.. code-block:: yaml
141141
142-
# app/config/config.yml
142+
# config/packages/fos_http_cache.yaml
143143
fos_http_cache:
144144
proxy_client:
145145
nginx:
@@ -170,7 +170,7 @@ refer to the :ref:`FOSHttpCache documentation for Symfony <foshttpcache:symfony
170170

171171
.. code-block:: yaml
172172
173-
# app/config/config.yml
173+
# config/packages/fos_http_cache.yaml
174174
fos_http_cache:
175175
proxy_client:
176176
symfony:
@@ -221,7 +221,7 @@ noop
221221

222222
.. code-block:: yaml
223223
224-
# app/config/config_test.yml
224+
# config/packages/test/fos_http_cache.yaml
225225
fos_http_cache:
226226
proxy_client:
227227
default: noop
@@ -237,7 +237,7 @@ default
237237

238238
.. code-block:: yaml
239239
240-
# app/config/config.yml
240+
# config/packages/fos_http_cache.yaml
241241
fos_http_cache:
242242
proxy_client:
243243
default: varnish

0 commit comments

Comments
 (0)