<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
use App\Services\CurrentPathService;
class HomeController extends AbstractController
{
/**
* @Route("/", name="app_home")
*/
public function index(CurrentPathService $currentPathService): Response
{
/*$dateTime = new \DateTime();
$hourNow = (new \DateTime())->add(new \DateInterval('PT1H'))->format('h:i a');
$dateArray = [
$dateTime->format('l'),
$dateTime->format('d'),
$dateTime->format('F'),
$hourNow
];
return $this->render('home/index.html.twig', [
'controller_name' => 'HomeController',
'dateArray' => $dateArray,
'classes' => $currentPathService->classes()
]);*/
return $this->redirectToRoute('app_login', [], Response::HTTP_SEE_OTHER);
}
}