File tree Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,9 @@ See also the [GitHub releases page](https://github.com/FriendsOfSymfony/FOSHttpC
6
6
2.0.0 (unreleased)
7
7
------------------
8
8
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 )
10
12
* The NGINX purge location is no longer passed as constructor argument but by
11
13
calling ` setPurgeLocation() ` .
12
14
* In ProxyTestCase, ` getHttpClient() ` has been replaced with ` getHttpAdapter() ` ;
Original file line number Diff line number Diff line change @@ -9,11 +9,23 @@ Composer_:
9
9
10
10
.. code-block :: bash
11
11
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.
13
25
14
26
.. note ::
15
27
16
- This library follows `Semantic Versioning `_. Because constraint ``~1 .0 ``
28
+ This library follows `Semantic Versioning `_. Because constraint ``~2 .0 ``
17
29
will only increment the minor and patch numbers, it will not introduce BC
18
30
breaks.
19
31
You can’t perform that action at this time.
0 commit comments