LaravelFacebookSdk icon indicating copy to clipboard operation
LaravelFacebookSdk copied to clipboard

Lumen IOC Dependancy Problem

Open linkthrow opened this issue 8 years ago • 4 comments

The constructor for the LaravelFacebookSdk required $url and $config which cannot be resolved

Unresolvable dependency resolving [Parameter #2 [ <required> array $config ]] in class SammyK\\LaravelFacebookSdk\\LaravelFacebookSdk

linkthrow avatar Oct 14 '16 14:10 linkthrow

I have fixed it and made a pull request for this https://github.com/SammyK/LaravelFacebookSdk/pull/136

linkthrow avatar Oct 14 '16 14:10 linkthrow

Hey @linkthrow! I'm not sure why you're getting this error as the dependencies are resolved in the server provider. Are you using the package's service provider?

SammyK avatar Dec 16 '16 21:12 SammyK

Correction: I see what you're saying now. Let me dig into this a bit more.

SammyK avatar Dec 16 '16 21:12 SammyK

Ok - so I still don't know how you're getting this message if you're using the package's service provider. Did you add the provider to your bootstrap/app.php file?

SammyK avatar Dec 16 '16 22:12 SammyK