src/Controller/DefaultController.php

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  4. use Symfony\Component\Routing\Annotation\Route;
  5. class DefaultController extends AbstractController
  6. {
  7.     /**
  8.      * @Route("/", name="index")
  9.      */
  10.     public function index()
  11.     {
  12.         return $this->render('default/index.html.twig', [
  13.             'controller_name' => 'DefaultController',
  14.         ]);
  15.     }
  16. }