Skip to content

Commit ffdcbde

Browse files
authored
Prepare 2.0.0 alpha (#360)
* Add PHP 7.1 to test matrix. * Update changelog. * Update FOSHttpCache dependency. * Add php-http/message to require-dev to fix --prefer-lowest on Travis. Otherwise Composer throws a "Your requirements could not be resolved to an installable set of packages."
1 parent bca9a26 commit ffdcbde

File tree

3 files changed

+37
-27
lines changed

3 files changed

+37
-27
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ addons:
1616
php:
1717
- 5.6
1818
- 7.0
19+
- 7.1
1920
- hhvm
2021

2122
env:

CHANGELOG.md

Lines changed: 34 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,30 @@
11
Changelog
22
=========
33

4-
2.0.0 (unreleased)
5-
------------------
6-
7-
* [Proxy Client Configuration] The configuration for the proxy client has been
8-
adjusted. Proxy servers are now configured under `http` and `servers` must be
9-
a list - a comma separated string of server IPs is no longer supported.
10-
11-
* [User Context] Added an option always_vary_on_context_hash to make it
12-
possible to disable automatically setting the vary headers for the user
13-
hash.
14-
15-
* Updated the version of FOSHttpCache to 2.*. See [FOSHttpCache changelog]
16-
(https://github.com/FriendsOfSymfony/FOSHttpCache/blob/master/CHANGELOG.md).
17-
Most important, there is no more hard coupling on Guzzle HTTP client. We now
18-
use the HTTPlug HTTP client abstraction. Your composer.json now needs to
19-
specify which HTTP client to install, see [installation instructions]
20-
(http://foshttpcachebundle.readthedocs.org/en/stable/installation.html)
21-
22-
* [Tags] The TagHandler has been split. Invalidating tags happens through the
23-
CacheManager (if you use annotations for tag invalidation, you don't need to
24-
change anything). Recording tags and writing them into the responses is done
25-
through the SymfonyResponseTagger now.
4+
2.0.0
5+
-----
266

27-
* [Test] Dropped the proxy client services as they where not used anywhere. The
28-
services `fos_http_cache.test.client.varnish` and `fos_http_cache.test.client.nginx`
29-
no longer exist.
7+
### General
308

9+
* Updated the version of FOSHttpCache to 2.0.0. See the [FOSHttpCache changelog]
10+
(https://github.com/FriendsOfSymfony/FOSHttpCache/blob/master/CHANGELOG.md)
11+
for more information. Most importantly, we removed the hard coupling on the
12+
Guzzle HTTP client (using HTTPlug). Your composer.json now needs to
13+
specify which HTTP client to install; see the [installation instructions].
14+
(http://foshttpcachebundle.readthedocs.org/en/stable/installation.html)
3115
* Deprecated methods have been removed.
3216

17+
### Proxy client
18+
19+
* The configuration for the proxy client has been adjusted. Proxy servers are
20+
now configured under `http` and `servers` must be a list - a comma separated
21+
string of server IPs is no longer supported.
22+
3323
### Event listeners
3424

3525
* **BC break:** the `UserContextListener` constructor signature was changed to
3626
take an array of options.
37-
* **BC break:** renamed the event listener classes to XyzListener.
27+
* **BC break:** renamed the event listener classes to `XyzListener`.
3828

3929
### Rule matcher
4030

@@ -46,6 +36,24 @@ Changelog
4636

4737
* Cacheable status codes are now configured globally
4838
(`cacheable.response.additional_status` or `cacheable.response.expression`).
39+
40+
### Tags
41+
42+
* **BC break:** The TagHandler has been split. Invalidating tags happens through the
43+
CacheManager (if you use annotations for tag invalidation, you don't need to
44+
change anything). Recording tags and writing them into the responses is now
45+
done through the SymfonyResponseTagger.
46+
47+
### Tests
48+
49+
* **BC break:** Dropped the proxy client services as they where not used anywhere. The
50+
services `fos_http_cache.test.client.varnish` and
51+
`fos_http_cache.test.client.nginx` no longer exist.
52+
53+
### User context
54+
55+
* Added an option `always_vary_on_context_hash` to make it possible to disable
56+
automatically setting the vary headers for the user hash.
4957

5058
1.3.7
5159
-----

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,14 @@
2222
],
2323
"require": {
2424
"php": "^5.6.0||^7.0.0",
25-
"friendsofsymfony/http-cache": "2.0.x-dev",
25+
"friendsofsymfony/http-cache": "^2.0.0-beta1",
2626
"symfony/framework-bundle": "^2.8||^3.0",
2727
"symfony/http-foundation": "~2.8.13||^3.1.6"
2828
},
2929
"require-dev": {
3030
"phpunit/phpunit": "^4.5.0 || ^5.0.0",
3131
"php-http/guzzle6-adapter": "^1.0",
32+
"php-http/message": "^1.0",
3233
"mockery/mockery": "0.9.*",
3334
"monolog/monolog": "*",
3435
"sensio/framework-extra-bundle": "^3.0",

0 commit comments

Comments
 (0)