<?php
namespace App\Controller;
use App\VCalendar\CustomCalendarFactory;
use App\Entity\Email\UseCase;
use App\Entity\HomeImage;
use App\Entity\UserEvent\UserEventHistory;
use App\Entity\UserEvent\UserEventStatus;
use App\Notification\MailerNotification;
use App\Notification\MailerService;
use App\Notification\Template;
use App\Notification\TemplateReplaceTag;
use App\Notification\VCalendarGenerator;
use App\Repository\Email\TemplateEmailRepository;
use App\Repository\HomeImageRepository;
use App\Repository\UserEvent\UserEventRepository;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
class HomeController extends AbstractController
{
#[Route('/', name: 'app_home')]
public function index(HomeImageRepository $homeImageRepository)
{
return $this->render('security/home.html.twig', [
'media' => $homeImageRepository->findImage([
'media' => true,
'origin' => get_class(new HomeImage()),
'isEnable' => 1,
])
]);
}
}