src/Controller/DefaultController.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use Symfony\Component\Routing\Annotation\Route;
  4. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  5. use Symfony\Component\HttpFoundation\Request;
  6. use Symfony\Component\HttpFoundation\Response;
  7. use Symfony\Contracts\Translation\TranslatorInterface;
  8. class DefaultController  extends AbstractController
  9. {
  10.     /**
  11.      * @Route("/", name="homepage")
  12.      */
  13.     public function indexAction(Request $requestTranslatorInterface $translator)
  14.     {
  15.         // replace this example code with whatever you need
  16.         return $this->render('default/dashboard.html.twig', [
  17.             'page_title' => $translator->trans('Dashboard')
  18.         ]);
  19.     }
  20. }