teamreflex / oauth2-discord

OAuth2 client for authenticating with the Discord API servers
MIT License
61 stars 26 forks source link

Missing class #17

Open tallypokemap opened 7 years ago

tallypokemap commented 7 years ago

I get this error when trying to run this.

PHP Fatal error: Uncaught Error: Class 'Discord\OAuth\Discord' not found in /var/www/html/index.php:5 Stack trace:

0 {main}

thrown in /var/www/html/index.php on line 5

Hackmastr commented 7 years ago

Did You install it correctly? (vendor folder existence)

Did You load the Composer autoloader?

include __DIR__.'/vendor/autoload.php'

tallypokemap commented 7 years ago

I cloned the git and ran composer. What about vendor folder existence?

Hackmastr commented 7 years ago

Does it exist...? If yes check if there is a subfolder with the library inside

tallypokemap commented 7 years ago

It was the autoloader. I added require "vendor/autoload.php"; to the php code. Thanks for the help.

tgraupmann commented 6 years ago

Where can I find the class AbstractProvider? It seems to provide the getAuthorizationUrl() method.

Found it https://github.com/thephpleague/oauth2-client/blob/64c6acd2730a4d698b9dae6de518196b0774719a/src/Provider/AbstractProvider.php