Skip to content

Commit

Permalink
Deprecate using doctrine/cache in favour of PSR-6
Browse files Browse the repository at this point in the history
  • Loading branch information
alcaeus committed Nov 27, 2020
1 parent 9899c16 commit d062763
Show file tree
Hide file tree
Showing 6 changed files with 1,726 additions and 1,718 deletions.
8 changes: 8 additions & 0 deletions UPGRADE-2.2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
UPGRADE FROM 2.1 to 2.2
=======================

* Deprecated using doctrine/cache for metadata caching. The `setCacheDriver` and
`getCacheDriver` methods in `Doctrine\Persistence\Mapping\AbstractMetadata`
have been deprecated. Please use `getCache` and `setCache` with a PSR-6
implementation instead. Note that even after switching to PSR-6,
`getCacheDriver` will return a cache instance that wraps the PSR-6 cache.
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
"doctrine/annotations": "^1.0",
"doctrine/cache": "^1.0",
"doctrine/collections": "^1.0",
"doctrine/event-manager": "^1.0"
"doctrine/event-manager": "^1.0",
"psr/cache": "^1.0",
"symfony/cache": "^4.4|^5.0"
},
"require-dev": {
"composer/package-versions-deprecated": "^1.11",
Expand Down
Loading

0 comments on commit d062763

Please sign in to comment.