2.0.0-alpha1
Pre-release
Pre-release
General
- Updated the version of FOSHttpCache to 2.0.0. See the FOSHttpCache changelog
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. - Deprecated methods have been removed.
Proxy client
- The configuration for the proxy client has been adjusted. Proxy servers are
now configured underhttpandserversmust be a list - a comma separated
string of server IPs is no longer supported.
Event listeners
- BC break: the
UserContextListenerconstructor signature was changed to
take an array of options. - BC break: renamed the event listener classes to
XyzListener.
Rule matcher
-
BC break: The
match_responseandadditional_cacheable_status
configuration parameters were removed for individual match rules. -
BC break: The second argument of the
RuleMatcherconstructor was changed
to take aResponseMatcherInterface. -
Cacheable status codes are now configured globally
(cacheable.response.additional_statusorcacheable.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
servicesfos_http_cache.test.client.varnishand
fos_http_cache.test.client.nginxno longer exist.
User context
- Added an option
always_vary_on_context_hashto make it possible to disable
automatically setting the vary headers for the user hash.