Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

HomeController.php 514B

2 лет назад
12345678910111213141516171819202122232425
  1. <?php
  2. namespace App\Controller\Frontend;
  3. use Doctrine\ORM\EntityManagerInterface;
  4. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  5. use Symfony\Component\HttpFoundation\Response;
  6. class HomeController extends AbstractController
  7. {
  8. protected EntityManagerInterface $em;
  9. public function __construct(
  10. EntityManagerInterface $em
  11. ) {
  12. $this->em = $em;
  13. }
  14. public function index(): Response
  15. {
  16. return $this->render('frontend/site/home.html.twig');
  17. }
  18. }