-
Notifications
You must be signed in to change notification settings - Fork 146
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
Add hint to call supports in getCredentials method for symfony lower than 3.4 #97
Conversation
Thanks @alexander-schranz! I think it's actually 3.3 and lower that have the issue - 3.4 should act like 4.0. But, I like the idea - we just need to tweak the message. |
@weaverryan updated the message to lower than 3.4 and fix the supports function call. |
It looks good to me 👍 |
README.md
Outdated
@@ -273,6 +273,11 @@ class MyFacebookAuthenticator extends SocialAuthenticator | |||
{ | |||
// this method is only called if supports() returns true | |||
|
|||
// For Symfony lower than 3.4 the supports method need to be called manually here: | |||
// if (!$this->supports($request)) { | |||
// return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's explicitly return null
here since this method is supposed to return something, but just return;
is supposed to return void
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me 👍
Thank you again! |
With #79 the docs is not longer working for lower than symfony 3.4. So a hint should be added how to get it work with <3.4