@@ -3,36 +3,41 @@ Changelog
33
44See also the [ GitHub releases page] ( https://github.com/FriendsOfSymfony/FOSHttpCache/releases ) .
55
6- 2.0.0 (unreleased)
7- ------------------
6+ 2.0.0
7+ -----
8+
9+ ### PHP
10+
11+ * Raised minimum PHP version to 5.5.
812
913### HTTP
1014
11- * Replaced hard coupling on Guzzle HTTP client with HTTPlug. You now need
12- to explicitly specify a supported HTTP adapter in composer.json, see [ installation instructions ]
13- (http://foshttpcache.readthedocs.io/en/stable/installation.html )
14- * BC Break: Separated the HttpDispatcher from the proxy clients. All existing
15- clients still use HTTP to send invalidation requests.
15+ * ** BC break: ** Replaced hard coupling on Guzzle HTTP client with HTTPlug.
16+ You now need to explicitly specify a supported HTTP adapter in composer.json;
17+ see [ installation instructions ] ( http://foshttpcache.readthedocs.io/en/stable/installation.html ) .
18+ * ** BC break: ** Separated the HttpDispatcher from the proxy clients. All
19+ existing clients still use HTTP to send invalidation requests.
1620* Added support and documentation for setting a custom TTL specifically for the
1721 caching proxy.
1822
1923### Logging
2024
21- * BC BREAK: Renamed the log event listener from Logsubscriber to LogListener.
25+ * ** BC break:** Renamed the log event listener from ` LogSubscriber ` to
26+ ` LogListener ` .
2227
2328### Tagging
2429
25- * Abstracting tags by adding new ` TagsInterface ` for ProxyClients, as part of
26- that also:
27- BC break: Moved tag invalidation to ` CacheInvalidator ` , and rename TagHandler
28- to ResponseTagger.
29- * The ResponseTagger validates that no tags are empty. It can skip empty tags
30- or throw exceptions
30+ * ** BC break:** Moved tag invalidation to ` CacheInvalidator ` , and renamed
31+ ` TagHandler ` to ` ResponseTagger ` .
32+ * Abstracting tags by adding new ` TagsInterface ` for ProxyClients.
33+ * Added ` strict ` option to ` ResponseTagger ` that throws an exception when empty
34+ tags are added. By default, empty tags are ignored.
3135
3236### Varnish
3337
3438* Varnish configuration are now files that you can directly include from your
3539 .vcl and call custom functions to avoid copy-pasting VCL code.
40+ * Added support for and changed default to Varnish version 5.
3641* Moved Varnish 4 and 5 configuration files from ` resources/config/varnish-4/ `
3742 to ` resources/config/varnish/ ` .
3843* Changed default Varnish version to 5.
@@ -46,20 +51,23 @@ See also the [GitHub releases page](https://github.com/FriendsOfSymfony/FOSHttpC
4651
4752### Symfony HttpCache
4853
49- * BC BREAK: Renamed all event listeners to XxListener instead of XxSubscriber.
50- * BC BREAK: Constructors for PurgeListener and RefreshListener now use an
51- options array for customization.
52- * Provide a trait for the event dispatching kernel, instead of a base class.
53- The trait offers both the addSubscriber and the addListener methods.
54+ * ** BC break:** Renamed all event listeners to ` XxListener ` instead of
55+ ` XxSubscriber ` .
56+ * ** BC break:** Constructors for ` PurgeListener ` and ` RefreshListener ` now use
57+ an options array for customization.
58+ * ** BC break:** Converted abstract event dispatching kernel class
59+ ` EventDispatchingHttpCache ` to a trait, which now provides the ` addSubscriber `
60+ and ` addListener ` methods. In your ` AppCache ` , replace
61+ ` AppCache extends EventDispatchingHttpInterface ` with a
62+ ` use EventDispatchingHttpCache; ` statement.
5463* The user context by default does not use a hardcoded hash for anonymous users
55- but does a hash lookup. You can still configure a hardcoded hash.
64+ but does a hash lookup. You can still configure a hardcoded hash.
5665
5766### Testing
5867
59- * In ProxyTestCase, ` getHttpClient() ` has been replaced with ` getHttpAdapter() ` ;
60- added HTTP method parameter to ` getResponse() ` .
61- * Refactored the proxy client test system into traits. Removed ProxyTestCase,
62- use the traits ` CacheAssertions ` and ` HttpCaller ` instead.
68+ * ** BC break:** Refactored the proxy client test system into traits. Removed
69+ ` ProxyTestCase ` ; use the traits ` CacheAssertions ` and ` HttpCaller ` instead.
70+ * Added HTTP method parameter to ` HttpCaller::getResponse() ` .
6371
64721.4.2
6573-----
0 commit comments