src/Http/Controller/Site/LPMobileAdsController.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Http\Controller\Site;
  3. use App\Database\Domain\Repository\GlobalsRepository;
  4. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  5. use Symfony\Component\HttpFoundation\Response;
  6. use Symfony\Component\Routing\Annotation\Route;
  7. use Symfony\Component\Security\Core\User\UserInterface;
  8. /**
  9.  * @Route("/download-mobile", name="site_lp_mobile_ads")
  10.  */
  11. class LPMobileAdsController extends AbstractController
  12. {
  13.     public function __invoke(GlobalsRepository $globalsRepository, ?UserInterface $user null): Response
  14.     {
  15.         if (null !== $user) {
  16.             return $this->redirectToRoute('user_sessions_index');
  17.         }
  18.         return $this->render('site/lp/mobile-ads-landing.html.twig');
  19.     }
  20. }