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.)
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.)