Skip to content

Commit

Permalink
Merge pull request #97 from alexander-schranz/patch-2
Browse files Browse the repository at this point in the history
Add hint to call supports in getCredentials method for symfony lower than 3.4
  • Loading branch information
weaverryan authored Apr 20, 2018
2 parents 62e808c + 5dccdd8 commit a9052c8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 null;
// }
return $this->fetchAccessToken($this->getFacebookClient());
}
Expand Down

0 comments on commit a9052c8

Please sign in to comment.