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.
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 themongodb/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 ofdoctrine/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.