From d8329bcdf3f9ca66d6488b389414ac1e90aa91f5 Mon Sep 17 00:00:00 2001 From: Florent Morselli Date: Sat, 26 Apr 2025 08:28:02 +0200 Subject: [PATCH] Add deprecation notice for enabledCache method The enabledCache method is now marked as deprecated starting from version 4.1 and will be removed in version 5.0. Users are encouraged to use the Http Client for caching responses instead. This change aligns with the planned removal of this method in the next --- src/Library/KeyManagement/UrlKeySetFactory.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Library/KeyManagement/UrlKeySetFactory.php b/src/Library/KeyManagement/UrlKeySetFactory.php index 3e593a2a..f9621da5 100644 --- a/src/Library/KeyManagement/UrlKeySetFactory.php +++ b/src/Library/KeyManagement/UrlKeySetFactory.php @@ -25,6 +25,9 @@ public function __construct( $this->cacheItemPool = new NullAdapter(); } + /** + * @deprecated since 4.1 and will be removed in 5.0. Please use the Http Client to cache the responses instead. + */ public function enabledCache(CacheItemPoolInterface $cacheItemPool, int $expiresAfter = 3600): void { $this->cacheItemPool = $cacheItemPool;