@@ -3,36 +3,41 @@ Changelog
3
3
4
4
See also the [ GitHub releases page] ( https://github.com/FriendsOfSymfony/FOSHttpCache/releases ) .
5
5
6
- 2.0.0 (unreleased)
7
- ------------------
6
+ 2.0.0
7
+ -----
8
+
9
+ ### PHP
10
+
11
+ * Raised minimum PHP version to 5.5.
8
12
9
13
### HTTP
10
14
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.
16
20
* Added support and documentation for setting a custom TTL specifically for the
17
21
caching proxy.
18
22
19
23
### Logging
20
24
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 ` .
22
27
23
28
### Tagging
24
29
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.
31
35
32
36
### Varnish
33
37
34
38
* Varnish configuration are now files that you can directly include from your
35
39
.vcl and call custom functions to avoid copy-pasting VCL code.
40
+ * Added support for and changed default to Varnish version 5.
36
41
* Moved Varnish 4 and 5 configuration files from ` resources/config/varnish-4/ `
37
42
to ` resources/config/varnish/ ` .
38
43
* Changed default Varnish version to 5.
@@ -46,20 +51,23 @@ See also the [GitHub releases page](https://github.com/FriendsOfSymfony/FOSHttpC
46
51
47
52
### Symfony HttpCache
48
53
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.
54
63
* 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.
56
65
57
66
### Testing
58
67
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() ` .
63
71
64
72
1.4.2
65
73
-----
0 commit comments