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

Add hint to call supports in getCredentials method for symfony lower than 3.4 #97

Merged
merged 5 commits into from
Apr 20, 2018

Conversation

alexander-schranz
Copy link
Contributor

@alexander-schranz alexander-schranz commented Mar 29, 2018

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

@weaverryan
Copy link
Member

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.

@alexander-schranz
Copy link
Contributor Author

@weaverryan updated the message to lower than 3.4 and fix the supports function call.

@alexander-schranz alexander-schranz changed the title Add hint to call supports in getCredentials method for symfony <4 Add hint to call supports in getCredentials method for symfony lower than 3.4 Mar 29, 2018
@MolloKhan
Copy link
Contributor

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;
Copy link
Member

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

Copy link
Member

@bocharsky-bw bocharsky-bw left a 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 👍

@weaverryan weaverryan merged commit a9052c8 into knpuniversity:master Apr 20, 2018
@weaverryan
Copy link
Member

Thank you again!

@alexander-schranz alexander-schranz deleted the patch-2 branch April 21, 2018 11:23
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.

4 participants