From c1e09e31c16ee5ed140d2b257307a2ed948c17e3 Mon Sep 17 00:00:00 2001 From: David Buchmann Date: Wed, 2 Nov 2022 16:01:58 +0100 Subject: [PATCH] fix cs and prepare release --- CHANGELOG.md | 5 +++++ src/SymfonyCache/CacheInvalidation.php | 9 +++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 98977de6..0ab63e36 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,11 @@ Changelog See also the [GitHub releases page](https://github.com/FriendsOfSymfony/FOSHttpCache/releases). +2.14.2 +------ + +* Fixed varnish configuration examples to say `Authorization` and not `Autorization`. + 2.14.1 ------ diff --git a/src/SymfonyCache/CacheInvalidation.php b/src/SymfonyCache/CacheInvalidation.php index 85f24de4..9d37cac4 100644 --- a/src/SymfonyCache/CacheInvalidation.php +++ b/src/SymfonyCache/CacheInvalidation.php @@ -11,9 +11,6 @@ namespace FOS\HttpCache\SymfonyCache; -use function class_alias; -use function class_exists; - use Symfony\Component\HttpKernel\HttpKernelInterface; use Symfony\Component\HttpKernel\Kernel; @@ -25,15 +22,15 @@ * Symfony 6 introduced a BC break in the signature of the protected method HttpKernelInterface::fetch. * Load the correct interface to match the signature. */ -if (class_exists(Kernel::class) && Kernel::MAJOR_VERSION >= 6) { +if (\class_exists(Kernel::class) && Kernel::MAJOR_VERSION >= 6) { // Load class for Symfony >=6.0 - class_alias( + \class_alias( Compatibility\CacheInvalidationS6::class, CacheInvalidation::class ); } else { // Load class for any other cases - class_alias( + \class_alias( Compatibility\CacheInvalidationLegacy::class, CacheInvalidation::class );