src/Controller/IndexController.php line 20

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