Skip to content

Commit

Permalink
Merge pull request #118 from boesing/qa/deprecate-classcache-pattern
Browse files Browse the repository at this point in the history
qa: mark `ClassCache` pattern as deprecated
  • Loading branch information
boesing committed Jul 11, 2021
2 parents 93ea2fe + 73f4eb5 commit 7d4a6a5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
9 changes: 5 additions & 4 deletions docs/book/pattern/class-cache.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 3 additions & 1 deletion src/Pattern/ClassCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{

Expand Down

0 comments on commit 7d4a6a5

Please sign in to comment.