Skip to content

Commit d8329bc

Browse files
committed
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
1 parent 1b273bd commit d8329bc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Library/KeyManagement/UrlKeySetFactory.php

+3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ public function __construct(
2525
$this->cacheItemPool = new NullAdapter();
2626
}
2727

28+
/**
29+
* @deprecated since 4.1 and will be removed in 5.0. Please use the Http Client to cache the responses instead.
30+
*/
2831
public function enabledCache(CacheItemPoolInterface $cacheItemPool, int $expiresAfter = 3600): void
2932
{
3033
$this->cacheItemPool = $cacheItemPool;

0 commit comments

Comments
 (0)