Skip to content
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

Mongo, new driver #746

Open
AstRonin opened this issue Jul 11, 2016 · 7 comments
Open

Mongo, new driver #746

AstRonin opened this issue Jul 11, 2016 · 7 comments

Comments

@AstRonin
Copy link

Hi,

Do you have a plan of to change OAuth2\Storage\Mongo to new driver?
This is need for migrate php code to new version PHP7.

Thanks

@danopz
Copy link

danopz commented Jul 11, 2016

Perfect for some contribution, don't you think so? 😉
Looks like this has to be a new Storage for BC.

@bshaffer
Copy link
Owner

We should have a MongoDB class, in addition to the Mongo storage class, which correspond to the mongodb.so and mongo.so extensions respectively.

@AstRonin
Copy link
Author

@copynpaste I think, I will have a time...

@AstRonin
Copy link
Author

#748

@iNDicat0r
Copy link

iNDicat0r commented Jul 25, 2016

Well I installed the new extension mongodb.so and:

composer require "mongodb/mongodb=^1.0.0"

and then just extend the Storage class called Mongo, changed the insertto insertOne, and updateto updateOneand everything works as expected with an additional lightweight dependency which is mongodb/mongodb

http://mongodb.github.io/mongo-php-library/getting-started/

@bshaffer
Copy link
Owner

@iNDicat0r would you mind submitting a PR with your changes?

@0ddlyoko
Copy link

0ddlyoko commented Jul 30, 2019

Well, 3 years later, I made the support for the new MongoDB Driver for my project:
https://github.com/FroxyNetwork/REST/blob/feature/servers/Api/Controller/DatasourceController/NewMongo.php
You can use it if you want ^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants