<?php
namespace App\Controller;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
use KnpU\OAuth2ClientBundle\Client\ClientRegistry;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
class AuthentificationController extends AbstractController
{
/**
* @Route("/connect/google", name="connect_google")
*/
public function connectActionGoogle(ClientRegistry $clientRegistry)
{
return $clientRegistry
->getClient('google')
->redirect();
}
/**
* @return void
* @Route("/connect/google/check", name="connect_google_check")
*/
public function connectCheckActionGoogle():void{}
}