src/Controller/HomeController.php line 22

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use Doctrine\ORM\EntityManagerInterface;
  4. use Symfony\Component\HttpFoundation\Request;
  5. use Symfony\Component\HttpFoundation\Response;
  6. use Symfony\Component\Routing\Annotation\Route;
  7. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  8. class HomeController extends AbstractController
  9. {
  10.     public function __construct(EntityManagerInterface $manager){
  11.         $this->manager $manager
  12.     }
  13.     /**
  14.      * @Route("/", name="app_home") 
  15.      */
  16.     public function index(Request $request): Response
  17.     {
  18.         return $this->render('home/index.html.twig', [
  19.             // 'home' => $home,  
  20.         ]); 
  21.     }
  22. }