diff --git a/composer.json b/composer.json index ede22b8e..26cb20bd 100644 --- a/composer.json +++ b/composer.json @@ -55,6 +55,7 @@ "laminas/laminas-cli": "^1.0", "laminas/laminas-coding-standard": "~1.0.0", "laminas/laminas-config-aggregator": "^1.5", + "laminas/laminas-feed": "^2.14", "laminas/laminas-serializer": "^2.6", "phpbench/phpbench": "^1.0.0-beta2", "phpspec/prophecy-phpunit": "^2.0", diff --git a/docs/book/pattern/class-cache.md b/docs/book/pattern/class-cache.md index a5970799..5385ee6a 100644 --- a/docs/book/pattern/class-cache.md +++ b/docs/book/pattern/class-cache.md @@ -1,9 +1,10 @@ # ClassCache -The `ClassCache` pattern is an extension to the -[`CallbackCache`](callback-cache.md) pattern. It has the same methods, but -instead generates the callbacks for any public static method invoked on the -class being cached, and caches static properties. +## Deprecation + +> ### Deprecated +> +> The `ClassCache` pattern is deprecated as of v2.12 and will be removed in v3.0. ## Quick Start diff --git a/src/Pattern/ClassCache.php b/src/Pattern/ClassCache.php index ae670897..877043c6 100644 --- a/src/Pattern/ClassCache.php +++ b/src/Pattern/ClassCache.php @@ -2,9 +2,11 @@ namespace Laminas\Cache\Pattern; -use Laminas\Cache; use Laminas\Cache\Exception; +/** + * @deprecated This pattern will be removed in 3.0.0. + */ class ClassCache extends CallbackCache {