src/Controller/HomeController.php line 27

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use App\VCalendar\CustomCalendarFactory;
  4. use App\Entity\Email\UseCase;
  5. use App\Entity\HomeImage;
  6. use App\Entity\UserEvent\UserEventHistory;
  7. use App\Entity\UserEvent\UserEventStatus;
  8. use App\Notification\MailerNotification;
  9. use App\Notification\MailerService;
  10. use App\Notification\Template;
  11. use App\Notification\TemplateReplaceTag;
  12. use App\Notification\VCalendarGenerator;
  13. use App\Repository\Email\TemplateEmailRepository;
  14. use App\Repository\HomeImageRepository;
  15. use App\Repository\UserEvent\UserEventRepository;
  16. use Symfony\Component\Routing\Annotation\Route;
  17. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  18. class HomeController extends AbstractController
  19. {
  20.     #[Route('/'name'app_home')]
  21.     public function index(HomeImageRepository $homeImageRepository)
  22.     {        
  23.         return $this->render('security/home.html.twig', [
  24.             'media' => $homeImageRepository->findImage([
  25.                 'media' => true
  26.                 'origin'   => get_class(new HomeImage()),
  27.                 'isEnable' => 1,
  28.             ])
  29.         ]);
  30.     }
  31. }