src/Controller/AuthentificationController.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use Symfony\Component\HttpFoundation\Response;
  4. use Symfony\Component\Routing\Annotation\Route;
  5. use KnpU\OAuth2ClientBundle\Client\ClientRegistry;
  6. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  7. class AuthentificationController extends AbstractController
  8. {
  9.     /**
  10.      * @Route("/connect/google", name="connect_google")
  11.      */
  12.     public function connectActionGoogle(ClientRegistry $clientRegistry)
  13.     {
  14.         return $clientRegistry
  15.             ->getClient('google')
  16.             ->redirect();
  17.     }
  18.     /**
  19.      * @return void
  20.      * @Route("/connect/google/check", name="connect_google_check")
  21.      */
  22.     public function connectCheckActionGoogle():void{}
  23. }