added MongoDB (new php driver mongodb) storage#748
added MongoDB (new php driver mongodb) storage#748AstRonin wants to merge 4 commits intobshaffer:developfrom
Conversation
|
Ah I've found that #697 adds this storage too |
|
Brent has a choice :) |
| $mongodb = Bootstrap::getInstance()->getMongoDB(); | ||
| } | ||
|
|
||
| public function testSetClientDetails() { |
There was a problem hiding this comment.
curly braces after function declarations should be on their own line, to be consistent with the styles in the rest of this library
|
This looks promising, but a few major things need to be fixed before we merge this.
|
|
Ok, I will do the changes after my holidays.
Another thing is that I can change |
|
@AstRonin Sounds good! Okay, to address your questions:
|
|
I added new commit, but travis failed again... |
|
|
||
| public function testAuthorizationCode() | ||
| { | ||
| $db = new MongoDB('mongodb://localhost:27017/oauth2_server_php'); |
There was a problem hiding this comment.
Test fails because Call to undefined method MongoDB\Driver\Manager::setAuthorizationCode() in /home/travis/build/bshaffer/oauth2-server-php/test/OAuth2/OpenID/Storage/AuthorizationCodeTest.php on line 77.
I think you need to be more specific here and use the namespace new \OAuth2\Storage\ MongoDB because the error suggests you are trying to call the setAuthorizationCode on the underlying MongoDB driver class, which obv won't work.
|
ok, it's my fault, I mixed classes in Bootstrap in previous test...
Will I need add something else in travis.yml? |
|
php5.3 really? http://php.net/supported-versions.php |
|
https://docs.mongodb.com/ecosystem/drivers/php/#language-compatibility |
|
HHVM works but you need the specific mongodb.so for that env. |
|
If anyone is interested, I created companion library over the weekend. https://github.com/chadicus/oauth2-storage-mongodb. Please keep in mind my mongodb library is in its very early stages and I'm sure it has bugs. I would not recommend for production use at this time. |
|
Added in #790 |
No description provided.