<?php
namespace App\Controller;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Twig\Environment;
class HomeController extends AbstractController
{
#[Route('/', name:'home_page', methods:['GET'])]
/**
* this function shows home page
*
* @return void
*
*/
public function home(Environment $twig = null):Response
{
// throw new NotFoundHttpException('The required page does not exist');
return $this->render('pages/home.html.twig');
}
}