Closed iamromeo closed 4 years ago
@iamromeo Hi, everything looks good, you did a great job to run this code with sf 3.3. As I see there is one little moment left. Symfony 3.3 doesn't use autowiring with controller actions that's why you cannot use
public function connectAction(ClientRegistry $clientRegistry)
You should get $clientRegistry
directly through the container like
public function connectAction()
{
return $this->get('knpu.oauth2.registry') // or 'oauth2.registry'
->getClient('discord_client')
->redirect([
'identify', 'email'
])
;
}
Hope this will help you! Cheers!
Was looking for this. It´s working. Thanks.
Note:
Issue:
I am using Symfon 3.x and PHP7
I have followed the instructions and I ended up with the following configuration and code:
But every time I navigate to /connect/discord/check (first method above) I get this:
Can someone give me a pointer here because I am so very lost.