doctrine / KeyValueStore

Abstraction for Key-Value to Plain Old PHP Object mapping
http://www.doctrine-project.org
MIT License
200 stars 59 forks source link

Use ext-mongodb for MongoDBStorage class #93

Closed alcaeus closed 5 years ago

alcaeus commented 5 years ago

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.