Skip to content

Commit 8d2ab77

Browse files
committed
Move doctrine/cache to optional dependencies
1 parent a8413ea commit 8d2ab77

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
"require": {
2929
"php": "^8.1",
3030
"ext-mongodb": "^1.21 || ^2.0",
31-
"doctrine/cache": "^2.0",
3231
"doctrine/collections": "^1.5 || ^2.0",
3332
"doctrine/event-manager": "^1.0 || ^2.0",
3433
"doctrine/instantiator": "^1.1 || ^2",
@@ -45,6 +44,7 @@
4544
"require-dev": {
4645
"ext-bcmath": "*",
4746
"doctrine/annotations": "^1.12 || ^2.0",
47+
"doctrine/cache": "^2.0",
4848
"doctrine/coding-standard": "^14.0",
4949
"doctrine/orm": "^3.2",
5050
"jmikola/geojson": "^1.0",
@@ -58,7 +58,8 @@
5858
"symfony/uid": "^5.4 || ^6.0 || ^7.0 || ^8.0"
5959
},
6060
"conflict": {
61-
"doctrine/annotations": "<1.12 || >=3.0"
61+
"doctrine/annotations": "<1.12 || >=3.0",
62+
"doctrine/cache": "<1.11"
6263
},
6364
"suggest": {
6465
"doctrine/annotations": "For annotation mapping support",

src/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ public function getMetadataDriverImpl(): ?MappingDriver
280280
public function getMetadataCacheImpl(): ?Cache
281281
{
282282
if (! interface_exists(Cache::class)) {
283-
throw new LogicException('The "doctrine/cache" package is deprecated and no longer installed with "doctrine/mongodb-odm". Require .');
283+
throw new LogicException('The "doctrine/cache" package is deprecated and no longer required by "doctrine/mongodb-odm". Use "getMetadataCache"');
284284
}
285285

286286
trigger_deprecation(

0 commit comments

Comments
 (0)