Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Argument 2 passed error in TwitterProvider #62

Open
ec-gsitu opened this issue Jul 8, 2013 · 1 comment
Open

Argument 2 passed error in TwitterProvider #62

ec-gsitu opened this issue Jul 8, 2013 · 1 comment

Comments

@ec-gsitu
Copy link

ec-gsitu commented Jul 8, 2013

Hi I've been stuck at this for a couple days now. I have this error when i'm trying to load my page. Any suggestions on how to solve this problem or what I can do?

PHP Catchable fatal error: Argument 2 passed to FOS\TwitterBundle\Security\Authentication\Provider\TwitterProvider::__construct() must implement interface Symfony\Component\Security\Core\User\UserProviderInterface, instance of FOS\TwitterBundle\Security\Authentication\Provider\TwitterProvider given, called in /home/gsitu/git/dev-local2/app/cache/dev/appDevDebugProjectContainer.php on line 4731 and defined in /home/gsitu/git/dev-local2/vendor/friendsofsymfony/twitter-bundle/FOS/TwitterBundle/Security/Authentication/Provider/TwitterProvider.php on line 36

@ec-gsitu
Copy link
Author

ec-gsitu commented Jul 8, 2013

Just fixed it, I had an error in my controller where I was calling the wrong TwitterProvider.
Also had the argument 4 error fixed it with changing the use statement in
friendsofsymfony/twitter-bundle/FOS/TwitterBundle/Security/Authentication/Provider/TwitterProvider.php

to
use Symfony\Component\HttpFoundation\Session\Session

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant