-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Lock] Update the MongoDbStore to work with the latest version of the mongodb extension #36702
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
|
…ranch (jakzal) This PR was merged into the 5.1-dev branch. Discussion ---------- Configure services additionally required by the master branch | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | Re #36647 | License | MIT | Doc PR | - Additionally run tests for: * couchbase * sqs * kafka * mongodb (although currently skipped due to #36702) Before: Tests: 1893, Assertions: 5178, Skipped: 105. After: Tests: 2042, Assertions: 5407, Skipped: 120. Commits ------- dc7ac57 Configure services additionally required by the master branch
BTW, looks like the old mongo extension doesn't even work with PHP 7, so there's no need to keep supporting it on the branches that only work with PHP 7. EDIT: MongoDbStore is only available in 5.1 Not sure what happened there, but it was first merged into 4.3: #27648 ping @kralos since you're the one that contributed this feature :) |
@jakzal I'm not sure what you mean by "not compatible with the latest versions of mongodb extension"? I use this store in production on
There was a legacy driver ( |
@kralos thanks for the clarification. One stackoverflow answer led me to believe the class is from the previous version of the extension. What I was missing is the |
The MongoDbStore is not compatible with the latest versions of mongodb extension. The latest mongodb extension uses a new way of creating the client.
Instead of
MongoDB\Client
we now haveMongoDB\Driver\Manager
.Some options to consider:
The text was updated successfully, but these errors were encountered: