No puede seleccionar más de 25 temas
Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
|
- <?php
-
- namespace App\Controller\Frontend;
-
-
- use Doctrine\ORM\EntityManagerInterface;
- use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
- use Symfony\Component\HttpFoundation\Response;
-
- class HomeController extends AbstractController
- {
-
- protected EntityManagerInterface $em;
-
- public function __construct(
- EntityManagerInterface $em
- ) {
- $this->em = $em;
- }
-
- public function index(): Response
- {
- return $this->render('frontend/site/home.html.twig');
- }
- }
|