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

Token Persistence #11

Merged
merged 5 commits into from
Jun 12, 2019
Merged

Token Persistence #11

merged 5 commits into from
Jun 12, 2019

Conversation

nreynis
Copy link
Contributor

@nreynis nreynis commented May 31, 2019

I retrofited Sevastian Hübner work (@disasterdrop) on Token Persistence.
Extracted the changes from his hard fork, added documentation and test.

I credited him in PhpDoc @author field.

@coveralls
Copy link

coveralls commented May 31, 2019

Coverage Status

Coverage remained the same at 100.0% when pulling ca62a36 on nreynis:master into 49a7fe8 on eljam:master.

@nreynis
Copy link
Contributor Author

nreynis commented May 31, 2019

A nice addition to this would be a PSR-16 (simple cache) adapter. If you want I can add it to the PR.

@eljam
Copy link
Owner

eljam commented May 31, 2019

Hello,

Yes, a few month i was thinking about adding doctrine cache library. But now that we have PSR-16 adapter it would be a good addition to the library.

if you don't mind, it would be great :)

$this->assertTrue($tokenPersistence->hasToken());
$this->assertEquals($tokenPersistence->restoreToken()->getToken(), $token->getToken());

$tokenPersistence->deleteToken();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need be align a bit.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep I was in a hurry last friday, I also forgot to stage the readme. I'll fix it tomorrow.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok cool. Thank you for your contribution !

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made the edits and squashed the changes in a single commit for cleaner history.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool thx

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 Thank you !

Better coverage
Fix indentation. Update readme
@eljam eljam merged commit 07d1f70 into eljam:master Jun 12, 2019
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

Successfully merging this pull request may close these issues.

None yet

3 participants