Use ext-mongodb for MongoDBStorage class #35

Closed
opened 2026-01-23 11:34:55 +01:00 by admin · 0 comments
Owner

Originally created by @alcaeus on GitHub (Sep 3, 2019).

This library currently uses the legacy MongoDB extension (ext-mongo) and its long-deprecated \Mongo class to store data in MongoDB. Instead, it should rely on the mongodb/mongodb library and the new driver (ext-mongodb).

FWIW, we may as well think about extracting these specific adapters into smaller packages that require the necessary packages: the doctrine/key-value-store-mongodb-adapter package would then be able to require specific versions of doctrine/key-value-store as well as all other packages that are necessary (in this case, mongodb/mongodb). Otherwise, you get into the whole "optional dependencies" mess again.

Originally created by @alcaeus on GitHub (Sep 3, 2019). This library currently uses the legacy MongoDB extension (`ext-mongo`) and its long-deprecated `\Mongo` class to store data in MongoDB. Instead, it should rely on the `mongodb/mongodb` library and the new driver (`ext-mongodb`). FWIW, we may as well think about extracting these specific adapters into smaller packages that require the necessary packages: the `doctrine/key-value-store-mongodb-adapter` package would then be able to require specific versions of `doctrine/key-value-store` as well as all other packages that are necessary (in this case, `mongodb/mongodb`). Otherwise, you get into the whole "optional dependencies" mess again.
admin added the bug label 2026-01-23 11:34:55 +01:00
admin closed this issue 2026-01-23 11:34:55 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/KeyValueStore#35