src/Action/User/Login/Google/AuthAction.php line 12
<?php
declare(strict_types=1);
namespace App\Action\User\Login\Google;
use App\Service\Google\AuthService;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\Response;
class AuthAction extends AbstractController
{
public function __invoke(AuthService $authService): Response
{
$authUrl = $authService->createUrl();
return new RedirectResponse((string) $authUrl);
}
}