Skip to content

Commit c6ac9e8

Browse files
committed
help with php-http adapter in changelog and setup instructions
1 parent 2ef29fe commit c6ac9e8

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ See also the [GitHub releases page](https://github.com/FriendsOfSymfony/FOSHttpC
66
2.0.0 (unreleased)
77
------------------
88

9-
* Replace hard coupling on Guzzle HTTP client with HTTP adapter.
9+
* Replace hard coupling on Guzzle HTTP client with HTTP adapter. You now need
10+
to explicitly specify the adapter you want, see [installation instructions]
11+
(http://foshttpcache.readthedocs.org/en/stable/installation.html)
1012
* The NGINX purge location is no longer passed as constructor argument but by
1113
calling `setPurgeLocation()`.
1214
* In ProxyTestCase, `getHttpClient()` has been replaced with `getHttpAdapter()`;

doc/installation.rst

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,23 @@ Composer_:
99

1010
.. code-block:: bash
1111
12-
$ composer require friendsofsymfony/http-cache:~1.0
12+
$ composer require friendsofsymfony/http-cache:~2.0
13+
14+
Note that the library needs a ``psr/http-message-implementation`` and
15+
``php-http/adapter-implementation``. If your project does not contain one,
16+
composer will complain that it did not find ``psr/http-message-implementation``.
17+
18+
When on PHP 5.5+, use the following line instead:
19+
20+
.. code-block:: bash
21+
22+
$ composer require friendsofsymfony/http-cache:~2.0 guzzlehttp/psr7:^1.0 php-http/guzzle6-adapter:^0.1.0
23+
24+
On PHP 5.4, the ``php-http/guzzle5-adapter:^0.1.0`` works fine.
1325

1426
.. note::
1527

16-
This library follows `Semantic Versioning`_. Because constraint ``~1.0``
28+
This library follows `Semantic Versioning`_. Because constraint ``~2.0``
1729
will only increment the minor and patch numbers, it will not introduce BC
1830
breaks.
1931

0 commit comments

Comments
 (0)