<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\HttpFoundation\Request;
class IndexController extends AbstractController
{
private $request;
public function __construct(){
$this->request = Request::createFromGlobals();
}
#[Route('/', name: 'index')]
public function index(): Response
{
return $this->render('index/index.html.twig', [
'controller_name' => 'IndexController',
]);
}
/*#[Route('/login', name: 'login')]
public function login(): Response
{
return $this->render('ajax/login.html.twig');
}*/
}