src/Controller/MasterController.php line 20

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use Symfony\Component\HttpFoundation\RedirectResponse;
  4. use Symfony\Component\Mime\Part\DataPart;
  5. use Symfony\Component\Mime\Part\Multipart\FormDataPart;
  6. use Symfony\Component\Routing\Annotation\Route;
  7. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  8. use Symfony\Component\HttpFoundation\JsonResponse;
  9. use Symfony\Component\HttpFoundation\Request;
  10. use Symfony\Component\HttpFoundation\Response;
  11. use Symfony\Contracts\HttpClient\HttpClientInterface;
  12. class MasterController extends AbstractController
  13. {
  14.     /**
  15.      * @Route("/")
  16.      */
  17.     public function index() {
  18.         $jsVariables = [];
  19.         return $this->render("web/home.html", [
  20.             'title' => "WEBINAR - Przechorowanie, czy zaszczepienie? Kiedy mamy wyższą odporność w przypadku COVID-19?",
  21.             'time' => time(),
  22.             'jsVariables' => $jsVariables
  23.         ]);
  24.     }
  25. }