src/Controller/AppController.php line 19

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  4. use Symfony\Component\HttpFoundation\Response;
  5. use Symfony\Component\Routing\Annotation\Route;
  6. /**
  7.  * Class AppController
  8.  * @package App\Controller
  9.  */
  10. class AppController extends AbstractController
  11. {
  12.     /**
  13.      * @Route("/", name="home", methods={"GET"})
  14.      * @return Response
  15.      */
  16.     public function index(): Response
  17.     {
  18.         return $this->render(
  19.             'app/index.html.twig',
  20.             array(
  21.                 'controller_name' => 'AppController',
  22.             )
  23.         );
  24.     }
  25. }