src/Controller/IndexController.php line 14

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 Symfony\Component\Routing\Annotation\Route;
  6. class IndexController extends AbstractController
  7. {
  8.   /**
  9.    * @Route("/", name="index")
  10.    */
  11.   public function index(Request $request)
  12.   {
  13.     return $this->redirectToRoute('easyadmin');
  14.     return $this->render('index/index.html.twig');
  15.   }
  16.   /**
  17.    * @Route("/privacy_policy", name="privacy_policy")
  18.    */
  19.   public function privacyPolicy(Request $request)
  20.   {
  21.     return $this->render('index/privacy_policy.html.twig');
  22.   }
  23.   /**
  24.    * @Route("/terms_and_conditions", name="terms_and_conditions")
  25.    */
  26.   public function termsAndConditions(Request $request)
  27.   {
  28.     return $this->render('index/terms_and_conditions.html.twig');
  29.   }
  30. }