From aca93c0b2ffdae12e7cb1f406303639bf742e4f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20B=C3=B6sing?= <2189546+boesing@users.noreply.github.com> Date: Mon, 24 May 2021 23:02:03 +0200 Subject: [PATCH 1/2] qa: mark `ClassCache` pattern as deprecated MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com> --- src/Pattern/ClassCache.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 { From 73f4eb5df3e6dd45085802cf0cd2b03e05dd90a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20B=C3=B6sing?= <2189546+boesing@users.noreply.github.com> Date: Thu, 3 Jun 2021 21:49:27 +0200 Subject: [PATCH 2/2] docs: marking `ClassCache` pattern as deprecated MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com> --- composer.json | 1 + docs/book/pattern/class-cache.md | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) 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