FriendsOfSymfony / FOSFacebookBundle

NOT MAINTAINED - see https://github.com/hwi/HWIOAuthBundle
322 stars 140 forks source link

Update 2-integration-with-fosuserbundle.md #313

Closed tvl83 closed 10 years ago

tvl83 commented 10 years ago

Annotations so certain IDEs will not complain about unknown methods (PHPStorm for me) and added a $userProvider which is suggested by the UserManager class because userManager->supportsClass() is deprecated on the userManager and suggests to use UserProvider.

I changed the annotation of $facebook based on the argument in config.yml it points to the fos_facebook.api service which is the class I put above.

(I don't know why the indentation is all weird it looked fine in the editor.)