Skip to content

Commit

Permalink
Prepare 2.0.0 alpha (#360)
Browse files Browse the repository at this point in the history
* 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."
  • Loading branch information
ddeboer authored Mar 6, 2017
1 parent bca9a26 commit ffdcbde
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 27 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ addons:
php:
- 5.6
- 7.0
- 7.1
- hhvm

env:
Expand Down
60 changes: 34 additions & 26 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,40 +1,30 @@
Changelog
=========

2.0.0 (unreleased)
------------------

* [Proxy Client Configuration] The configuration for the proxy client has been
adjusted. Proxy servers are now configured under `http` and `servers` must be
a list - a comma separated string of server IPs is no longer supported.

* [User Context] Added an option always_vary_on_context_hash to make it
possible to disable automatically setting the vary headers for the user
hash.

* Updated the version of FOSHttpCache to 2.*. See [FOSHttpCache changelog]
(https://github.com/FriendsOfSymfony/FOSHttpCache/blob/master/CHANGELOG.md).
Most important, there is no more hard coupling on Guzzle HTTP client. We now
use the HTTPlug HTTP client abstraction. Your composer.json now needs to
specify which HTTP client to install, see [installation instructions]
(http://foshttpcachebundle.readthedocs.org/en/stable/installation.html)

* [Tags] The TagHandler has been split. Invalidating tags happens through the
CacheManager (if you use annotations for tag invalidation, you don't need to
change anything). Recording tags and writing them into the responses is done
through the SymfonyResponseTagger now.
2.0.0
-----

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

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

### Proxy client

* The configuration for the proxy client has been adjusted. Proxy servers are
now configured under `http` and `servers` must be a list - a comma separated
string of server IPs is no longer supported.

### Event listeners

* **BC break:** the `UserContextListener` constructor signature was changed to
take an array of options.
* **BC break:** renamed the event listener classes to XyzListener.
* **BC break:** renamed the event listener classes to `XyzListener`.

### Rule matcher

Expand All @@ -46,6 +36,24 @@ Changelog

* Cacheable status codes are now configured globally
(`cacheable.response.additional_status` or `cacheable.response.expression`).

### Tags

* **BC break:** The TagHandler has been split. Invalidating tags happens through the
CacheManager (if you use annotations for tag invalidation, you don't need to
change anything). Recording tags and writing them into the responses is now
done through the SymfonyResponseTagger.

### Tests

* **BC break:** Dropped the proxy client services as they where not used anywhere. The
services `fos_http_cache.test.client.varnish` and
`fos_http_cache.test.client.nginx` no longer exist.

### User context

* Added an option `always_vary_on_context_hash` to make it possible to disable
automatically setting the vary headers for the user hash.

1.3.7
-----
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,14 @@
],
"require": {
"php": "^5.6.0||^7.0.0",
"friendsofsymfony/http-cache": "2.0.x-dev",
"friendsofsymfony/http-cache": "^2.0.0-beta1",
"symfony/framework-bundle": "^2.8||^3.0",
"symfony/http-foundation": "~2.8.13||^3.1.6"
},
"require-dev": {
"phpunit/phpunit": "^4.5.0 || ^5.0.0",
"php-http/guzzle6-adapter": "^1.0",
"php-http/message": "^1.0",
"mockery/mockery": "0.9.*",
"monolog/monolog": "*",
"sensio/framework-extra-bundle": "^3.0",
Expand Down

0 comments on commit ffdcbde

Please sign in to comment.