src/Controller/Security/Google/GoogleAuthController.php line 13

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Controller\Security\Google;
  4. use KnpU\OAuth2ClientBundle\Client\ClientRegistry;
  5. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  6. use Symfony\Component\HttpFoundation\RedirectResponse;
  7. class GoogleAuthController extends AbstractController
  8. {
  9.     public function connect(ClientRegistry $clientRegistry): RedirectResponse
  10.     {
  11.         return $clientRegistry->getClient('google')->redirect([], []);
  12.     }
  13. }